Uses of Interface
io.opentelemetry.context.propagation.ContextPropagators
Packages that use ContextPropagators
Package
Description
The OpenTelemetry API.
Interfaces for defining
ContextPropagators
for
allowing context propagation across process boundaries, for example when sending context to a
remote server.The OpenTelemetry SDK.
The OpenTelemetry SDK implementation of tracing.
-
Uses of ContextPropagators in io.opentelemetry.api
Fields in io.opentelemetry.api declared as ContextPropagatorsModifier and TypeFieldDescriptionprivate final ContextPropagators
DefaultOpenTelemetry.propagators
Methods in io.opentelemetry.api that return ContextPropagatorsModifier and TypeMethodDescriptionDefaultOpenTelemetry.getPropagators()
static ContextPropagators
GlobalOpenTelemetry.getPropagators()
Returns the globally registeredContextPropagators
for remote propagation of a context.GlobalOpenTelemetry.ObfuscatedOpenTelemetry.getPropagators()
OpenTelemetry.getPropagators()
Returns theContextPropagators
for thisOpenTelemetry
.Methods in io.opentelemetry.api with parameters of type ContextPropagatorsModifier and TypeMethodDescription(package private) static OpenTelemetry
DefaultOpenTelemetry.getPropagating
(ContextPropagators propagators) static OpenTelemetry
OpenTelemetry.propagating
(ContextPropagators propagators) Returns anOpenTelemetry
which will do remote propagation ofContext
using the providedContextPropagators
and is no-op otherwise.Constructors in io.opentelemetry.api with parameters of type ContextPropagatorsModifierConstructorDescription(package private)
DefaultOpenTelemetry
(ContextPropagators propagators) -
Uses of ContextPropagators in io.opentelemetry.api.incubator.propagation
Methods in io.opentelemetry.api.incubator.propagation with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionstatic Context
ExtendedContextPropagators.extractTextMapPropagationContext
(Map<String, String> carrier, ContextPropagators propagators) Extract the context from a string map, which you get from HTTP headers of the metadata of a message you're processing.ExtendedContextPropagators.getTextMapPropagationContext
(ContextPropagators propagators) Injects the current context into a string map, which can then be added to HTTP headers or the metadata of a message. -
Uses of ContextPropagators in io.opentelemetry.api.incubator.trace
Methods in io.opentelemetry.api.incubator.trace with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionExtendedDefaultTracer.NoopSpanBuilder.setParentFrom
(ContextPropagators propagators, Map<String, String> carrier) ExtendedSpanBuilder.setParentFrom
(ContextPropagators propagators, Map<String, String> carrier) Extract a span context from the given carrier and set it as parent of the span forExtendedSpanBuilder.startAndCall(SpanCallable)
andExtendedSpanBuilder.startAndRun(SpanRunnable)
. -
Uses of ContextPropagators in io.opentelemetry.context.propagation
Classes in io.opentelemetry.context.propagation that implement ContextPropagatorsModifier and TypeClassDescription(package private) final class
DefaultContextPropagators
is the default, built-in implementation ofContextPropagators
.Fields in io.opentelemetry.context.propagation declared as ContextPropagatorsModifier and TypeFieldDescriptionprivate static final ContextPropagators
DefaultContextPropagators.NOOP
Methods in io.opentelemetry.context.propagation that return ContextPropagatorsModifier and TypeMethodDescriptionstatic ContextPropagators
ContextPropagators.create
(TextMapPropagator textPropagator) Returns aContextPropagators
which can be used to extract and inject context in text payloads with the givenTextMapPropagator
.static ContextPropagators
ContextPropagators.noop()
Returns aContextPropagators
which performs no injection or extraction.(package private) static ContextPropagators
DefaultContextPropagators.noop()
-
Uses of ContextPropagators in io.opentelemetry.sdk
Fields in io.opentelemetry.sdk declared as ContextPropagatorsModifier and TypeFieldDescriptionprivate final ContextPropagators
OpenTelemetrySdk.propagators
private ContextPropagators
OpenTelemetrySdkBuilder.propagators
Methods in io.opentelemetry.sdk that return ContextPropagatorsMethods in io.opentelemetry.sdk with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionOpenTelemetrySdkBuilder.setPropagators
(ContextPropagators propagators) Sets theContextPropagators
to use.Constructors in io.opentelemetry.sdk with parameters of type ContextPropagatorsModifierConstructorDescription(package private)
OpenTelemetrySdk
(SdkTracerProvider tracerProvider, SdkMeterProvider meterProvider, SdkLoggerProvider loggerProvider, ContextPropagators propagators) -
Uses of ContextPropagators in io.opentelemetry.sdk.autoconfigure
Methods in io.opentelemetry.sdk.autoconfigure that return ContextPropagatorsModifier and TypeMethodDescription(package private) static ContextPropagators
PropagatorConfiguration.configurePropagators
(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super TextMapPropagator, ConfigProperties, ? extends TextMapPropagator> propagatorCustomizer) -
Uses of ContextPropagators in io.opentelemetry.sdk.trace
Methods in io.opentelemetry.sdk.trace with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionSdkSpanBuilder.setParentFrom
(ContextPropagators propagators, Map<String, String> carrier)