Class TracingSubscriber<T>

java.lang.Object
io.opentelemetry.instrumentation.reactor.v3_1.TracingSubscriber<T>
All Implemented Interfaces:
org.reactivestreams.Subscriber<T>, reactor.core.CoreSubscriber<T>

public class TracingSubscriber<T> extends Object implements reactor.core.CoreSubscriber<T>
Based on OpenTracing code. https://github.com/opentracing-contrib/java-reactor/blob/master/src/main/java/io/opentracing/contrib/reactor/TracedSubscriber.java
  • Constructor Details

    • TracingSubscriber

      public TracingSubscriber(org.reactivestreams.Subscriber<? super T> subscriber, reactor.util.context.Context ctx)
    • TracingSubscriber

      public TracingSubscriber(org.reactivestreams.Subscriber<? super T> subscriber, reactor.util.context.Context ctx, io.opentelemetry.context.Context contextToPropagate)
  • Method Details

    • onSubscribe

      public void onSubscribe(org.reactivestreams.Subscription subscription)
      Specified by:
      onSubscribe in interface reactor.core.CoreSubscriber<T>
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<T>
    • onNext

      public void onNext(T o)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<T>
    • onError

      public void onError(Throwable throwable)
      Specified by:
      onError in interface org.reactivestreams.Subscriber<T>
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface org.reactivestreams.Subscriber<T>
    • currentContext

      public reactor.util.context.Context currentContext()
      Specified by:
      currentContext in interface reactor.core.CoreSubscriber<T>