org.typelevel.otel4s.context.propagation.ContextPropagators
See theContextPropagators companion trait
Members list
Creates a ContextPropagators which can be used to extract and inject context in text payloads with the given TextMapPropagator .
If multiple text map propagators are passed, the combined (composite) TextMapPropagator instance will be created.
It's a shortcut for:
ContextPropagators.of(TextMapPropagator.of(w3cPropagator, httpTracePropagator))
Type parameters
Ctx
the context to use to extract or inject data
Value parameters
textMapPropagators
the propagators to use for injection and extraction
Attributes
See also
Example
val w3cPropagator: TextMapPropagator[Context] = ???
val httpTracePropagator: TextMapPropagator[Context] = ???
val contextPropagators = ContextPropagators.of(w3cPropagator, httpTracePropagator)
Source
ContextPropagators.scala