T - the type of element signaledR - the type of request elementpublic class OpenTelemetryCorePublisher<T,R> extends OpenTelemetryPublisher<T,R> implements reactor.core.CorePublisher<T>
OpenTelemetryPublisher.TracingSubscriberpublisher| Constructor and Description |
|---|
OpenTelemetryCorePublisher(org.reactivestreams.Publisher<T> publisher,
io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter,
io.opentelemetry.context.Context parentContext,
R request,
OpenTelemetryObserver<T> observer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSubscribe(org.reactivestreams.Subscriber<? super T> actual,
io.opentelemetry.context.Context context)
Do subscribe to the publisher.
|
void |
subscribe(reactor.core.CoreSubscriber<? super T> subscriber) |
subscribepublic OpenTelemetryCorePublisher(org.reactivestreams.Publisher<T> publisher, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter, io.opentelemetry.context.Context parentContext, R request, OpenTelemetryObserver<T> observer)
publisher - the target publisherinstrumenter - the instrumenterparentContext - the context from a parentrequest - the request objectobserver - the tracing observerpublic void subscribe(reactor.core.CoreSubscriber<? super T> subscriber)
subscribe in interface reactor.core.CorePublisher<T>protected void doSubscribe(org.reactivestreams.Subscriber<? super T> actual, io.opentelemetry.context.Context context)
OpenTelemetryPublisherdoSubscribe in class OpenTelemetryPublisher<T,R>actual - The actual subscribercontext - The context