public final class OpenTelemetryPublisherUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T,R> OpenTelemetryPublisher<T,R> |
createOpenTelemetryPublisher(org.reactivestreams.Publisher<T> publisher,
io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter,
io.opentelemetry.context.Context context,
R request)
Creates a new tracing publisher for the given arguments.
|
static <T,R> OpenTelemetryPublisher<T,R> |
createOpenTelemetryPublisher(org.reactivestreams.Publisher<T> publisher,
io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter,
io.opentelemetry.context.Context context,
R request,
OpenTelemetryObserver<T> observer)
Creates a new tracing publisher for the given arguments.
|
static void |
logError(io.opentelemetry.context.Context context,
java.lang.Throwable e)
Logs an error to the span.
|
public static <T,R> OpenTelemetryPublisher<T,R> createOpenTelemetryPublisher(org.reactivestreams.Publisher<T> publisher, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter, io.opentelemetry.context.Context context, @Nullable R request, OpenTelemetryObserver<T> observer)
T - The publisher's typeR - the type of request elementpublisher - the target publisherinstrumenter - the instrumenterrequest - the request objectcontext - the Open Telemetry contextobserver - the tracing observerpublic static <T,R> OpenTelemetryPublisher<T,R> createOpenTelemetryPublisher(org.reactivestreams.Publisher<T> publisher, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<R,java.lang.Object> instrumenter, io.opentelemetry.context.Context context, @Nullable R request)
T - The publisher's typeR - the type of request elementpublisher - the target publisherinstrumenter - the instrumentercontext - the Open Telemetry contextrequest - the request objectpublic static void logError(io.opentelemetry.context.Context context,
java.lang.Throwable e)
context - the spane - the error