Top Description Fields Constructors Methods
io.opentelemetry.context.propagation

pack-priv final Class DefaultContextPropagators

extends Object
implements ContextPropagators
Class Inheritance
All Implemented Interfaces
io.opentelemetry.context.propagation.ContextPropagators

DefaultContextPropagators is the default, built-in implementation of ContextPropagators.

All the registered propagators are stored internally as a simple list, and are invoked synchronically upon injection and extraction.

The propagation fields retrieved from all registered propagators are de-duplicated.

Field Summary

Modifier and TypeField and Description
private static final ContextPropagators
private final TextMapPropagator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public TextMapPropagator
pack-priv static ContextPropagators
noop()

Hides io.opentelemetry.context.propagation.ContextPropagators.noop.

Returns a ContextPropagators which performs no injection or extraction.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

NOOPback to summary
private static final ContextPropagators NOOP
textMapPropagatorback to summary
private final TextMapPropagator textMapPropagator

Constructor Detail

DefaultContextPropagatorsback to summary
pack-priv DefaultContextPropagators(TextMapPropagator textMapPropagator)

Method Detail

getTextMapPropagatorback to summary
public TextMapPropagator getTextMapPropagator()

Implements io.opentelemetry.context.propagation.ContextPropagators.getTextMapPropagator.

Doc from io.opentelemetry.context.propagation.ContextPropagators.getTextMapPropagator.

Returns a TextMapPropagator propagator.

The returned value will be a composite instance containing all the registered TextMapPropagator propagators. If none is registered, the returned value will be a no-op instance.

Returns:TextMapPropagator

the TextMapPropagator propagator to inject and extract data.

Annotations
@Override
noopback to summary
pack-priv static ContextPropagators noop()

Hides io.opentelemetry.context.propagation.ContextPropagators.noop.

Doc from io.opentelemetry.context.propagation.ContextPropagators.noop.

Returns a ContextPropagators which performs no injection or extraction.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override