View Source otel_propagator_trace_context (opentelemetry_api v1.0.2)
An implementation of otel_propagator_text_map that injects and extracts trace context using the W3C TraceContext format.
This propagator along with otel_propagator_baggage are used by default. The global TextMap Propagators can be configured in the application environment:
{text_map_propagators, [trace_context, baggage]},Or by calling opentelemetry:set_text_map_propagator/1.
Link to this section Summary
Link to this section Functions
Specs
extract(Context, Carrier, CarrierKeysFun, CarrierGetFun, Options) -> Context
when
Context :: otel_ctx:t(),
Carrier :: otel_propagator:carrier(),
CarrierKeysFun :: otel_propagator_text_map:carrier_keys(),
CarrierGetFun :: otel_propagator_text_map:carrier_get(),
Options :: otel_propagator_text_map:propagator_options().
Specs
inject(Context, Carrier, CarrierSetFun, Options) -> Carrier
when
Context :: otel_ctx:t(),
Carrier :: otel_propagator:carrier(),
CarrierSetFun :: otel_propagator_text_map:carrier_set(),
Options :: otel_propagator_text_map:propagator_options().