public final class DefaultContextPropagators extends Object implements 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultContextPropagators.Builder
DefaultContextPropagators.Builder is used to construct a new ContextPropagators object with the specified
propagators. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultContextPropagators.Builder |
builder()
Returns a
DefaultContextPropagators.Builder to create a new ContextPropagators
object. |
TextMapPropagator |
getTextMapPropagator()
Returns a
TextMapPropagator propagator. |
public TextMapPropagator getTextMapPropagator()
ContextPropagatorsTextMapPropagator 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.
getTextMapPropagator in interface ContextPropagatorsTextMapPropagator propagator to inject and extract data.public static DefaultContextPropagators.Builder builder()
DefaultContextPropagators.Builder to create a new ContextPropagators
object.DefaultContextPropagators.Builder.