View Source otel_propagator_baggage (opentelemetry_api v1.3.0)

An implementation of otel_propagator_text_map that injects and extracts baggage using the W3C Baggage format.

This propagator along with otel_propagator_trace_context 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

Link to this function

extract(Context, Carrier, CarrierKeysFun, CarrierGetFun, Options)

View Source
-spec 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().
Link to this function

inject(Context, Carrier, CarrierSetFun, Options)

View Source
-spec 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().