类 WebFluxSkyWalkingOperators
java.lang.Object
org.apache.skywalking.apm.toolkit.webflux.WebFluxSkyWalkingOperators
WebFlux operators that are capable to reuse tracing context from Reactor's Context.
-
方法概要
修饰符和类型方法说明static Consumer<reactor.core.publisher.Signal>continueTracing(Runnable runnable) Wraps a runnable with a local span and continue tracing context.static voidcontinueTracing(org.springframework.web.server.ServerWebExchange serverWebExchange, Runnable runnable) Wraps a runnable with a local span and continue tracing context.static <T> TcontinueTracing(org.springframework.web.server.ServerWebExchange serverWebExchange, Callable<T> callable) Wraps a callable with a local span and continue tracing context.static Consumer<reactor.core.publisher.Signal<?>>continueTracing(reactor.core.publisher.SignalType signalType, Runnable runnable) Wraps a runnable with a local span and continue tracing context.static Consumer<reactor.core.publisher.Signal>continueTracing(reactor.core.publisher.SignalType signalType, Consumer<reactor.core.publisher.Signal> consumer) Wraps a consumer with a local span and continue tracing context.static voidcontinueTracing(reactor.util.context.Context context, Runnable runnable) Wraps a runnable with a local span and continue tracing context.static <T> TcontinueTracing(reactor.util.context.Context context, Callable<T> callable) Wraps a callable with a local span and continue tracing context.
-
方法详细资料
-
continueTracing
public static Consumer<reactor.core.publisher.Signal<?>> continueTracing(reactor.core.publisher.SignalType signalType, Runnable runnable) Wraps a runnable with a local span and continue tracing context.- 参数:
signalType- - Reactor's signal typerunnable- - lambda to execute within the tracing context- 返回:
- consumer of a signal
-
continueTracing
public static Consumer<reactor.core.publisher.Signal> continueTracing(reactor.core.publisher.SignalType signalType, Consumer<reactor.core.publisher.Signal> consumer) Wraps a consumer with a local span and continue tracing context.- 参数:
signalType- - Reactor's signal typeconsumer- - lambda to execute within the tracing context- 返回:
- consumer of a signal
-
continueTracing
Wraps a runnable with a local span and continue tracing context.- 参数:
runnable- - lambda to execute within the tracing context- 返回:
- consumer of a signal
-
continueTracing
Wraps a runnable with a local span and continue tracing context.- 参数:
context- - Reactor context that contains the tracing contextrunnable- - lambda to execute within the tracing context
-
continueTracing
Wraps a callable with a local span and continue tracing context.- 类型参数:
T- callable's return type- 参数:
context- - Reactor context that contains the tracing contextcallable- - lambda to execute within the tracing context- 返回:
- value from the callable
-
continueTracing
public static <T> T continueTracing(org.springframework.web.server.ServerWebExchange serverWebExchange, Callable<T> callable) Wraps a callable with a local span and continue tracing context.- 类型参数:
T- callable's return type- 参数:
serverWebExchange- - EnhancedInstance that contains the tracing contextcallable- - lambda to execute within the tracing context- 返回:
- value from the callable
-
continueTracing
public static void continueTracing(org.springframework.web.server.ServerWebExchange serverWebExchange, Runnable runnable) Wraps a runnable with a local span and continue tracing context.- 参数:
serverWebExchange- - EnhancedInstance that contains the tracing contextrunnable- - lambda to execute within the tracing context
-