instrument_propagator_baggage (instrument v1.0.0)

View Source

W3C Baggage propagator.

This propagator handles the W3C Baggage specification for propagating application-defined key-value pairs.

See: https://www.w3.org/TR/baggage/

Summary

Functions

Extracts baggage from a carrier.

Returns the header fields used by this propagator.

Injects baggage into a carrier.

Functions

extract(Carrier, Ctx)

-spec extract(map(), map()) -> map().

Extracts baggage from a carrier.

fields()

-spec fields() -> [binary()].

Returns the header fields used by this propagator.

inject(Ctx, Carrier)

-spec inject(map(), map()) -> map().

Injects baggage into a carrier.