public static class TraceMultiPropagator.Builder
extends java.lang.Object
TraceMultiPropagator.Builder
is used to construct a new TraceMultiPropagator
object with the
specified propagators.Modifier and Type | Method and Description |
---|---|
TraceMultiPropagator.Builder |
addPropagator(io.opentelemetry.context.propagation.TextMapPropagator propagator)
Adds a
TextMapPropagator trace propagator. |
TraceMultiPropagator |
build()
Builds a new
TraceMultiPropagator with the specified propagators. |
public TraceMultiPropagator.Builder addPropagator(io.opentelemetry.context.propagation.TextMapPropagator propagator)
TextMapPropagator
trace propagator.
Registered propagators will be invoked in reverse order, starting with the last propagator to the first one.
propagator
- the propagator to be added.java.lang.NullPointerException
- if propagator
is null
.public TraceMultiPropagator build()
TraceMultiPropagator
with the specified propagators.TraceMultiPropagator
instance.