Class Tracing.TracerProvider<T>
java.lang.Object
com.google.adk.telemetry.Tracing.TracerProvider<T>
- Type Parameters:
T- The type of the stream.
- All Implemented Interfaces:
io.reactivex.rxjava3.core.CompletableTransformer, io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T, T>, io.reactivex.rxjava3.core.SingleTransformer<T, T>
- Enclosing class:
Tracing
public static final class Tracing.TracerProvider<T>
extends Object
implements io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.SingleTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T,T>, io.reactivex.rxjava3.core.CompletableTransformer
A transformer that manages an OpenTelemetry span and scope for RxJava streams.
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableSourceapply(io.reactivex.rxjava3.core.Completable upstream) org.reactivestreams.Publisher<T> io.reactivex.rxjava3.core.MaybeSource<T> io.reactivex.rxjava3.core.SingleSource<T> Configures the span created by this transformer.setParent(io.opentelemetry.context.Context parentContext) Sets an explicit parent context for the span created by this transformer.
-
Method Details
-
configure
@CanIgnoreReturnValue public Tracing.TracerProvider<T> configure(Consumer<io.opentelemetry.api.trace.Span> configurer) Configures the span created by this transformer. -
setParent
@CanIgnoreReturnValue public Tracing.TracerProvider<T> setParent(io.opentelemetry.context.Context parentContext) Sets an explicit parent context for the span created by this transformer. -
apply
-
apply
-
apply
-
apply
public io.reactivex.rxjava3.core.CompletableSource apply(io.reactivex.rxjava3.core.Completable upstream) - Specified by:
applyin interfaceio.reactivex.rxjava3.core.CompletableTransformer
-