Uses of Interface
org.springframework.cloud.sleuth.Span
-
Packages that use Span Package Description org.springframework.cloud.sleuth org.springframework.cloud.sleuth.annotation org.springframework.cloud.sleuth.docs org.springframework.cloud.sleuth.http -
-
Uses of Span in org.springframework.cloud.sleuth
Methods in org.springframework.cloud.sleuth that return Span Modifier and Type Method Description Span
Tracer. currentSpan()
Retrieves the current span in scope ornull
if one is not available.Span
Span. error(Throwable throwable)
Records an exception for this span.Span
Span. event(String value)
Sets an event on this span.Span
SpanAndScope. getSpan()
Span
Span. name(String name)
Sets a name on this span.Span
Tracer. nextSpan()
This creates a new span based on the current span in scope.Span
Tracer. nextSpan(Span parent)
This creates a new span whose parent isSpan
.default Span
Span. remoteIpAndPort(String ip, int port)
Sets the remote url on the span.default Span
Span. remoteServiceName(String remoteServiceName)
Sets the remote service name for the span.Span
Span.Builder. start()
Builds and starts the span.Span
Span. start()
Starts this span.Span
Span. tag(String key, String value)
Sets a tag on this span.Methods in org.springframework.cloud.sleuth with parameters of type Span Modifier and Type Method Description Span
Tracer. nextSpan(Span parent)
This creates a new span whose parent isSpan
.void
ThreadLocalSpan. set(Span span)
Sets given span and scope.Tracer.SpanInScope
Tracer. withSpan(Span span)
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 Constructor Description SpanAndScope(Span span, Tracer.SpanInScope scope)
-
Uses of Span in org.springframework.cloud.sleuth.annotation
Methods in org.springframework.cloud.sleuth.annotation with parameters of type Span Modifier and Type Method Description void
NewSpanParser. parse(org.aopalliance.intercept.MethodInvocation methodInvocation, NewSpan newSpan, Span span)
Override to control the name and tags on an annotation-based span. -
Uses of Span in org.springframework.cloud.sleuth.docs
Subinterfaces of Span in org.springframework.cloud.sleuth.docs Modifier and Type Interface Description interface
AssertingSpan
Span
that 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 Span Modifier and Type Method Description static <T extends Span>
TAssertingSpan. unwrap(Span span)
Returns the underlying delegate.Methods in org.springframework.cloud.sleuth.docs that return Span Modifier and Type Method Description Span
AssertingSpan. getDelegate()
default Span
AssertingSpan. remoteIpAndPort(String ip, int port)
Methods in org.springframework.cloud.sleuth.docs with parameters of type Span Modifier and Type Method Description static AssertingSpan
AssertingSpan. continueSpan(DocumentedSpan documentedSpan, Span span)
static AssertingSpan
AssertingSpan. of(DocumentedSpan documentedSpan, Span span)
static <T extends Span>
TAssertingSpan. unwrap(Span span)
Returns the underlying delegate.default AssertingSpan
DocumentedSpan. wrap(Span span)
Asserts on tags, names and allowed events. -
Uses of Span in org.springframework.cloud.sleuth.http
Methods in org.springframework.cloud.sleuth.http that return Span Modifier and Type Method Description Span
HttpServerHandler. handleReceive(HttpServerRequest request)
Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.Span
HttpClientHandler. handleSend(HttpClientRequest request)
Starts the client span after assigning it a name and tags.Span
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 Span Modifier and Type Method Description void
HttpClientHandler. handleReceive(HttpClientResponse response, Span span)
Finishes the client span after assigning it tags according to the response or error.void
HttpServerHandler. handleSend(HttpServerResponse response, Span span)
Finishes the server span after assigning it tags according to the response or error.
-