View Source otel_propagator_text_map_composite (opentelemetry_api v1.1.1)

A Composite TextMap Propagator is a Propagator that performs run multiple TextMap Propagators in a specified order.

An example of creating a Composite TextMap Propagator to inject and extract Baggage and TraceContext:

  Propagator = otel_propagator_text_map_composite:create([trace_context, baggage]),
  otel_propagator_text_map:extract(Propagator, Carrier)

Link to this section Summary

Link to this section Functions

Link to this function

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

View Source
-spec extract(Context, Carrier, CarrierKeysFun, CarrierGetFun, Extractors) -> Context
           when
               Context :: otel_ctx:t(),
               Carrier :: otel_propagator:carrier(),
               CarrierKeysFun :: otel_propagator_text_map:carrier_keys(),
               CarrierGetFun :: otel_propagator_text_map:carrier_get(),
               Extractors :: [otel_propagator_text_map:t()].
Link to this function

inject(Context, Carrier, CarrierSetFun, Injectors)

View Source
-spec inject(Context, Carrier, CarrierSetFun, Injectors) -> Carrier
          when
              Context :: otel_ctx:t(),
              Carrier :: otel_propagator:carrier(),
              CarrierSetFun :: otel_propagator_text_map:carrier_set(),
              Injectors :: [otel_propagator_text_map:t()].