| Package | Description |
|---|---|
| org.springframework.cloud.sleuth | |
| org.springframework.cloud.sleuth.http | |
| org.springframework.cloud.sleuth.propagation |
| Modifier and Type | Method and Description |
|---|---|
TraceContext |
CurrentTraceContext.context() |
TraceContext |
Span.context() |
TraceContext |
ScopedSpan.context() |
| Modifier and Type | Method and Description |
|---|---|
String |
BaggageInScope.get(TraceContext traceContext)
Retrieves baggage from the given
TraceContext. |
BaggageInScope |
BaggageManager.getBaggage(TraceContext traceContext,
String name)
Retrieves
BaggageInScope for the given name. |
CurrentTraceContext.Scope |
CurrentTraceContext.maybeScope(TraceContext context)
Like
CurrentTraceContext.newScope(TraceContext), except returns a noop scope if the given
context is already in scope. |
CurrentTraceContext.Scope |
CurrentTraceContext.newScope(TraceContext context)
Sets the current span in scope until the returned object is closed.
|
BaggageInScope |
BaggageInScope.set(TraceContext traceContext,
String value)
Sets the baggage value for the given
TraceContext. |
Span.Builder |
Span.Builder.setParent(TraceContext context)
Sets the parent of the built span.
|
| Modifier and Type | Method and Description |
|---|---|
Span |
HttpClientHandler.handleSend(HttpClientRequest request,
TraceContext parent)
Same as
HttpClientHandler.handleSend(HttpClientRequest) but with an explicit parent
TraceContext. |
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.
|
| Modifier and Type | Method and Description |
|---|---|
<C> void |
Propagator.inject(TraceContext context,
C carrier,
Propagator.Setter<C> setter)
Injects the value downstream, for example as HTTP headers.
|
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.