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>
Based on OpenTracing code.
https://github.com/opentracing-contrib/java-reactor/blob/master/src/main/java/io/opentracing/contrib/reactor/TracedSubscriber.java
-
Constructor Summary
ConstructorsConstructorDescriptionTracingSubscriber(org.reactivestreams.Subscriber<? super T> subscriber, reactor.util.context.Context ctx) TracingSubscriber(org.reactivestreams.Subscriber<? super T> subscriber, reactor.util.context.Context ctx, io.opentelemetry.context.Context contextToPropagate) -
Method Summary
Modifier and TypeMethodDescriptionreactor.util.context.ContextvoidvoidvoidvoidonSubscribe(org.reactivestreams.Subscription subscription)
-
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) -
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<T>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
currentContext
public reactor.util.context.Context currentContext()- Specified by:
currentContextin interfacereactor.core.CoreSubscriber<T>
-