类 WebFluxSkyWalkingOperators

java.lang.Object
org.apache.skywalking.apm.toolkit.webflux.WebFluxSkyWalkingOperators

public final class WebFluxSkyWalkingOperators extends Object
WebFlux operators that are capable to reuse tracing context from Reactor's Context.
  • 方法概要

    修饰符和类型
    方法
    说明
    static Consumer<reactor.core.publisher.Signal>
    Wraps a runnable with a local span and continue tracing context.
    static void
    continueTracing(org.springframework.web.server.ServerWebExchange serverWebExchange, Runnable runnable)
    Wraps a runnable with a local span and continue tracing context.
    static <T> T
    continueTracing(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 void
    continueTracing(reactor.util.context.Context context, Runnable runnable)
    Wraps a runnable with a local span and continue tracing context.
    static <T> T
    continueTracing(reactor.util.context.Context context, Callable<T> callable)
    Wraps a callable with a local span and continue tracing context.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • 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 type
      runnable - - 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 type
      consumer - - lambda to execute within the tracing context
      返回:
      consumer of a signal
    • continueTracing

      public static Consumer<reactor.core.publisher.Signal> continueTracing(Runnable runnable)
      Wraps a runnable with a local span and continue tracing context.
      参数:
      runnable - - lambda to execute within the tracing context
      返回:
      consumer of a signal
    • continueTracing

      public static void continueTracing(reactor.util.context.Context context, Runnable runnable)
      Wraps a runnable with a local span and continue tracing context.
      参数:
      context - - Reactor context that contains the tracing context
      runnable - - lambda to execute within the tracing context
    • continueTracing

      public static <T> T continueTracing(reactor.util.context.Context context, Callable<T> callable)
      Wraps a callable with a local span and continue tracing context.
      类型参数:
      T - callable's return type
      参数:
      context - - Reactor context that contains the tracing context
      callable - - 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 context
      callable - - 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 context
      runnable - - lambda to execute within the tracing context