public final class WebFluxSleuthOperators extends Object
| Modifier and Type | Method and Description |
|---|---|
static TraceContext |
currentTraceContext(reactor.util.context.Context context)
Returns the current trace context.
|
static TraceContext |
currentTraceContext(org.springframework.web.server.ServerWebExchange exchange)
Returns the current trace context.
|
static TraceContext |
currentTraceContext(reactor.core.publisher.Signal signal)
Returns the current trace context.
|
static <T> T |
withSpanInScope(reactor.util.context.Context context,
Callable<T> callable)
Wraps a callable with a span.
|
static void |
withSpanInScope(reactor.util.context.Context context,
Runnable runnable)
Wraps a runnable with a span.
|
static <T> T |
withSpanInScope(reactor.util.context.ContextView context,
Callable<T> callable)
Wraps a callable with a span.
|
static void |
withSpanInScope(reactor.util.context.ContextView context,
Runnable runnable)
Wraps a runnable with a span.
|
static Consumer<reactor.core.publisher.Signal> |
withSpanInScope(Runnable runnable)
Wraps a runnable with a span.
|
static Consumer<reactor.core.publisher.Signal> |
withSpanInScope(reactor.core.publisher.SignalType signalType,
Consumer<reactor.core.publisher.Signal> consumer)
Wraps a runnable with a span.
|
static Consumer<reactor.core.publisher.Signal> |
withSpanInScope(reactor.core.publisher.SignalType signalType,
Runnable runnable)
Wraps a runnable with a span.
|
static <T> T |
withSpanInScope(Tracer tracer,
CurrentTraceContext currentTraceContext,
org.springframework.web.server.ServerWebExchange exchange,
Callable<T> callable)
Wraps a callable with a span.
|
static void |
withSpanInScope(Tracer tracer,
CurrentTraceContext currentTraceContext,
org.springframework.web.server.ServerWebExchange exchange,
Runnable runnable)
Wraps a runnable with a span.
|
public static Consumer<reactor.core.publisher.Signal> withSpanInScope(reactor.core.publisher.SignalType signalType, Runnable runnable)
signalType - - Reactor's signal typerunnable - - lambda to execute within the tracing contextpublic static Consumer<reactor.core.publisher.Signal> withSpanInScope(reactor.core.publisher.SignalType signalType, Consumer<reactor.core.publisher.Signal> consumer)
signalType - - Reactor's signal typeconsumer - - lambda to execute within the tracing contextpublic static Consumer<reactor.core.publisher.Signal> withSpanInScope(Runnable runnable)
runnable - - lambda to execute within the tracing contextpublic static void withSpanInScope(reactor.util.context.Context context,
Runnable runnable)
context - - Reactor context that contains the TraceContextrunnable - - lambda to execute within the tracing contextpublic static void withSpanInScope(reactor.util.context.ContextView context,
Runnable runnable)
context - - Reactor context that contains the TraceContextrunnable - - lambda to execute within the tracing contextpublic static <T> T withSpanInScope(reactor.util.context.Context context,
Callable<T> callable)
T - callable's return typecontext - - Reactor context that contains the TraceContextcallable - - lambda to execute within the tracing contextpublic static <T> T withSpanInScope(reactor.util.context.ContextView context,
Callable<T> callable)
T - callable's return typecontext - - Reactor context that contains the TraceContextcallable - - lambda to execute within the tracing contextpublic static void withSpanInScope(Tracer tracer, CurrentTraceContext currentTraceContext, org.springframework.web.server.ServerWebExchange exchange, Runnable runnable)
tracer - - tracer beancurrentTraceContext - - currentTraceContext beanexchange - - server web exchange that can contain the TraceContext in
its attributerunnable - - lambda to execute within the currentTraceContext contextpublic static <T> T withSpanInScope(Tracer tracer, CurrentTraceContext currentTraceContext, org.springframework.web.server.ServerWebExchange exchange, Callable<T> callable)
T - callable's return typetracer - - tracer beancurrentTraceContext - - currentTraceContext beanexchange - - server web exchange that can contain the TraceContext in
its attributecallable - - lambda to execute within the tracing contextpublic static TraceContext currentTraceContext(org.springframework.web.server.ServerWebExchange exchange)
exchange - - server web exchange that can contain the TraceContext in
its attributenull if it's not presentpublic static TraceContext currentTraceContext(reactor.util.context.Context context)
context - - Reactor context that can contain the TraceContextnull if it's not presentpublic static TraceContext currentTraceContext(reactor.core.publisher.Signal signal)
signal - - Reactor signal that can contain the TraceContext in its
contextnull if it's not presentCopyright © 2021 Pivotal Software, Inc.. All rights reserved.