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.
-
Uses of ContextPropagators in io.opentelemetry.api
Methods in io.opentelemetry.api that return ContextPropagatorsModifier and TypeMethodDescriptionstatic ContextPropagatorsGlobalOpenTelemetry.getPropagators()Returns the globally registeredContextPropagatorsfor remote propagation of a context.OpenTelemetry.getPropagators()Returns theContextPropagatorsfor thisOpenTelemetry.Methods in io.opentelemetry.api with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionstatic OpenTelemetryOpenTelemetry.propagating(ContextPropagators propagators) Returns anOpenTelemetrywhich will do remote propagation ofContextusing the providedContextPropagatorsand is no-op otherwise. -
Uses of ContextPropagators in io.opentelemetry.api.incubator.propagation
Methods in io.opentelemetry.api.incubator.propagation with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionstatic ContextExtendedContextPropagators.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 TypeMethodDescriptionExtendedSpanBuilder.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
Methods in io.opentelemetry.context.propagation that return ContextPropagatorsModifier and TypeMethodDescriptionstatic ContextPropagatorsContextPropagators.create(TextMapPropagator textPropagator) Returns aContextPropagatorswhich can be used to extract and inject context in text payloads with the givenTextMapPropagator.static ContextPropagatorsContextPropagators.noop()Returns aContextPropagatorswhich performs no injection or extraction. -
Uses of ContextPropagators in io.opentelemetry.sdk
Methods in io.opentelemetry.sdk that return ContextPropagatorsMethods in io.opentelemetry.sdk with parameters of type ContextPropagatorsModifier and TypeMethodDescriptionOpenTelemetrySdkBuilder.setPropagators(ContextPropagators propagators) Sets theContextPropagatorsto use.