| Package | Description |
|---|---|
| org.springframework.cloud.sleuth | |
| org.springframework.cloud.sleuth.annotation | |
| org.springframework.cloud.sleuth.http |
| Modifier and Type | Method and Description |
|---|---|
Span |
Tracer.currentSpan()
Retrieves the current span in scope or
null 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 |
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 is
Span. |
default Span |
Span.remoteServiceName(String remoteServiceName)
Sets the remote service name for the span.
|
Span |
Span.start()
Starts this span.
|
Span |
Span.Builder.start()
Builds and starts the span.
|
Span |
Span.tag(String key,
String value)
Sets a tag on this span.
|
| Modifier and Type | Method and Description |
|---|---|
Span |
Tracer.nextSpan(Span parent)
This creates a new span whose parent is
Span. |
Tracer.SpanInScope |
Tracer.withSpan(Span span)
Makes the given span the "current span" and returns an object that exits that scope
on close.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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 as
HttpClientHandler.handleSend(HttpClientRequest) but with an explicit parent
TraceContext. |
| Modifier and Type | Method and 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.
|
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.