public abstract class ReactorSleuth extends Object
Modifier and Type | Method and Description |
---|---|
static Function<Runnable,Runnable> |
scopePassingOnScheduleHook(org.springframework.context.ConfigurableApplicationContext springContext) |
static <T> Function<? super org.reactivestreams.Publisher<T>,? extends org.reactivestreams.Publisher<T>> |
scopePassingSpanOperator(org.springframework.context.ConfigurableApplicationContext springContext)
Return a span operator pointcut given a
Tracing . |
public static <T> Function<? super org.reactivestreams.Publisher<T>,? extends org.reactivestreams.Publisher<T>> scopePassingSpanOperator(org.springframework.context.ConfigurableApplicationContext springContext)
Tracing
. This can be used in
reactor via Flux.transform(Function)
,
Mono.transform(Function)
,
Hooks.onLastOperator(Function)
or
Hooks.onLastOperator(Function)
. The Span operator
pointcut will pass the Scope of the Span without ever creating any new spans.T
- an arbitrary type that is left unchanged by the span operatorspringContext
- the Spring context.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.