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 SpanTracer. currentSpan()Retrieves the current span in scope ornullif one is not available.SpanSpan. error(Throwable throwable)Records an exception for this span.SpanSpan. event(String value)Sets an event on this span.SpanSpanAndScope. getSpan()SpanSpan. name(String name)Sets a name on this span.SpanTracer. nextSpan()This creates a new span based on the current span in scope.SpanTracer. nextSpan(Span parent)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.SpanSpan.Builder. start()Builds and starts the span.SpanSpan. start()Starts this span.SpanSpan. 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 SpanTracer. nextSpan(Span parent)This creates a new span whose parent isSpan.voidThreadLocalSpan. set(Span span)Sets given span and scope.Tracer.SpanInScopeTracer. 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 voidNewSpanParser. 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 interfaceAssertingSpanSpanthat 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 SpanAssertingSpan. getDelegate()default SpanAssertingSpan. remoteIpAndPort(String ip, int port)Methods in org.springframework.cloud.sleuth.docs with parameters of type Span Modifier and Type Method Description static AssertingSpanAssertingSpan. continueSpan(DocumentedSpan documentedSpan, Span span)static AssertingSpanAssertingSpan. of(DocumentedSpan documentedSpan, Span span)static <T extends Span>
TAssertingSpan. unwrap(Span span)Returns the underlying delegate.default AssertingSpanDocumentedSpan. 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 SpanHttpServerHandler. handleReceive(HttpServerRequest request)Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.SpanHttpClientHandler. handleSend(HttpClientRequest request)Starts the client span after assigning it a name and tags.SpanHttpClientHandler. 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 voidHttpClientHandler. 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.
-