Uses of Interface
org.springframework.cloud.sleuth.Span
Packages that use Span
Package
Description
-
Uses of Span in org.springframework.cloud.sleuth
Methods in org.springframework.cloud.sleuth that return SpanModifier and TypeMethodDescriptionTracer.currentSpan()Retrieves the current span in scope ornullif one is not available.Records an exception for this span.Sets an event on this span.SpanAndScope.getSpan()Sets a name on this span.Tracer.nextSpan()This creates a new span based on the current span in scope.This creates a new span whose parent isSpan.default SpanSpan.remoteIpAndPort(String ip, int port) Sets the remote url on the span.default SpanSpan.remoteServiceName(String remoteServiceName) Sets the remote service name for the span.Span.Builder.start()Builds and starts the span.Span.start()Starts this span.Sets a tag on this span.Methods in org.springframework.cloud.sleuth with parameters of type SpanModifier and TypeMethodDescriptionThis creates a new span whose parent isSpan.voidSets given span and scope.Makes the given span the "current span" and returns an object that exits that scope on close.Constructors in org.springframework.cloud.sleuth with parameters of type Span -
Uses of Span in org.springframework.cloud.sleuth.annotation
Methods in org.springframework.cloud.sleuth.annotation with parameters of type Span -
Uses of Span in org.springframework.cloud.sleuth.docs
Subinterfaces of Span in org.springframework.cloud.sleuth.docsModifier and TypeInterfaceDescriptioninterfaceSpanthat performs additional assertions such as allowed name, tag, event verification and upon reporting, whether the span had been started in the first place.Methods in org.springframework.cloud.sleuth.docs with type parameters of type SpanMethods in org.springframework.cloud.sleuth.docs that return SpanModifier and TypeMethodDescriptionAssertingSpan.getDelegate()default SpanAssertingSpan.remoteIpAndPort(String ip, int port) Methods in org.springframework.cloud.sleuth.docs with parameters of type SpanModifier and TypeMethodDescriptionstatic AssertingSpanAssertingSpan.continueSpan(DocumentedSpan documentedSpan, Span span) static AssertingSpanAssertingSpan.of(DocumentedSpan documentedSpan, Span span) static <T extends Span>
TReturns the underlying delegate.default AssertingSpanAsserts on tags, names and allowed events. -
Uses of Span in org.springframework.cloud.sleuth.http
Methods in org.springframework.cloud.sleuth.http that return SpanModifier and TypeMethodDescriptionHttpServerHandler.handleReceive(HttpServerRequest request) Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.HttpClientHandler.handleSend(HttpClientRequest request) Starts the client span after assigning it a name and tags.HttpClientHandler.handleSend(HttpClientRequest request, TraceContext parent) Same asHttpClientHandler.handleSend(HttpClientRequest)but with an explicit parentTraceContext.Methods in org.springframework.cloud.sleuth.http with parameters of type SpanModifier and TypeMethodDescriptionvoidHttpClientHandler.handleReceive(HttpClientResponse response, Span span) Finishes the client span after assigning it tags according to the response or error.voidHttpServerHandler.handleSend(HttpServerResponse response, Span span) Finishes the server span after assigning it tags according to the response or error.