| Package | Description |
|---|---|
| org.springframework.cloud.sleuth | |
| org.springframework.cloud.sleuth.docs | |
| org.springframework.cloud.sleuth.http |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Span
This API was heavily influenced by Brave.
|
| Modifier and Type | Method and Description |
|---|---|
SpanCustomizer |
Tracer.currentSpanCustomizer()
Allows to customize the current span in scope.
|
SpanCustomizer |
SpanCustomizer.event(String value)
Sets an event on a span.
|
SpanCustomizer |
SpanCustomizer.name(String name)
Sets a name on a span.
|
SpanCustomizer |
SpanCustomizer.tag(String key,
String value)
Sets a tag on a 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. |
interface |
AssertingSpanCustomizer
A
SpanCustomizer that can perform assertions on itself. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends SpanCustomizer> |
AssertingSpanCustomizer.unwrap(SpanCustomizer span)
Returns the underlying delegate.
|
| Modifier and Type | Method and Description |
|---|---|
SpanCustomizer |
AssertingSpanCustomizer.getDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static AssertingSpanCustomizer |
AssertingSpanCustomizer.of(DocumentedSpan documentedSpan,
SpanCustomizer span) |
static <T extends SpanCustomizer> |
AssertingSpanCustomizer.unwrap(SpanCustomizer span)
Returns the underlying delegate.
|
default AssertingSpanCustomizer |
DocumentedSpan.wrap(SpanCustomizer span)
Asserts on tags, names and allowed events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpRequestParser.parse(HttpRequest request,
TraceContext context,
SpanCustomizer span)
Implement to choose what data from the http request are parsed into the span
representing it.
|
void |
HttpResponseParser.parse(HttpResponse response,
TraceContext context,
SpanCustomizer span)
Implement to choose what data from the http response are parsed into the span
representing it.
|
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.