Class W3CBaggagePropagator
java.lang.Object
io.opentelemetry.api.baggage.propagation.W3CBaggagePropagator
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapPropagator
public final class W3CBaggagePropagator
extends Object
implements io.opentelemetry.context.propagation.TextMapPropagator
TextMapPropagator
that implements the W3C specification for baggage header propagation.-
Method Summary
Modifier and TypeMethodDescription<C> io.opentelemetry.context.Context
extract
(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapGetter<C> getter) fields()
static W3CBaggagePropagator
Singleton instance of the W3C Baggage Propagator.<C> void
inject
(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapSetter<C> setter) toString()
-
Method Details
-
getInstance
Singleton instance of the W3C Baggage Propagator. -
fields
- Specified by:
fields
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
inject
public <C> void inject(io.opentelemetry.context.Context context, @Nullable C carrier, io.opentelemetry.context.propagation.TextMapSetter<C> setter) - Specified by:
inject
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
extract
public <C> io.opentelemetry.context.Context extract(io.opentelemetry.context.Context context, @Nullable C carrier, io.opentelemetry.context.propagation.TextMapGetter<C> getter) - Specified by:
extract
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
toString
-