@FunctionalInterface public interface TraceContextProvider
TraceContext allowing propagation of Tracer.Span TraceContexts across threads.| Modifier and Type | Method and Description |
|---|---|
TraceContext |
getTraceContext()
Returns the
TraceContext in a blocking fashion. |
default Supplier<TraceContext> |
getTraceContextAsync(Map<Object,Object> appContext)
Returns a
Supplier that resolves the TraceContext on demand, using the given application context to
obtain or populate a particular context where required. |
default reactor.core.publisher.Mono<TraceContext> |
getTraceContextLater()
Deprecated.
since 7.8, override
getTraceContextAsync(Map) instead; scheduled for removal in Lettuce 8.0. |
TraceContext getTraceContext()
TraceContext in a blocking fashion.
Return value can be null depending on the implementation, and application context it is called from.
TraceContext.@Deprecated default reactor.core.publisher.Mono<TraceContext> getTraceContextLater()
getTraceContextAsync(Map) instead; scheduled for removal in Lettuce 8.0.TraceContext in a deferred fashion as a Mono.
The emitted value may be null depending on the implementation and the application context it is called from.
Mono emitting the TraceContext.default Supplier<TraceContext> getTraceContextAsync(Map<Object,Object> appContext)
Supplier that resolves the TraceContext on demand, using the given application context to
obtain or populate a particular context where required.
The value produced by the Supplier may be null depending on the implementation and the application
context it is called from.
appContext - the application context used to resolve the TraceContext.Supplier of the TraceContext.Copyright © 2026 lettuce.io. All rights reserved.