| Package | Description |
|---|---|
| org.springframework.cloud.sleuth | |
| org.springframework.cloud.sleuth.annotation | |
| org.springframework.cloud.sleuth.docs | |
| 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 |
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 is
Span. |
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.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. |
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.
|
| Constructor and Description |
|---|
SpanAndScope(Span span,
Tracer.SpanInScope scope) |
| 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 | Interface and 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. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Span> |
AssertingSpan.unwrap(Span span)
Returns the underlying delegate.
|
| Modifier and Type | Method and Description |
|---|---|
Span |
AssertingSpan.getDelegate() |
default Span |
AssertingSpan.remoteIpAndPort(String ip,
int port) |
| Modifier and Type | Method and Description |
|---|---|
static AssertingSpan |
AssertingSpan.of(DocumentedSpan documentedSpan,
Span span) |
static <T extends Span> |
AssertingSpan.unwrap(Span span)
Returns the underlying delegate.
|
default AssertingSpan |
DocumentedSpan.wrap(Span span)
Asserts on tags, names and allowed events.
|
| 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.