instrument_propagator_b3_multi (instrument v1.0.0)

View Source

B3 Multi-Header propagator.

Implements the B3 multi-header format per openzipkin/b3-propagation: - X-B3-TraceId: 32 or 16 hex chars - X-B3-SpanId: 16 hex chars - X-B3-ParentSpanId: 16 hex chars (optional) - X-B3-Sampled: 0 or 1 (optional) - X-B3-Flags: 1 for debug (optional, implies sampled)

See: https://github.com/openzipkin/b3-propagation

Summary

Functions

Extracts trace context from a carrier using B3 multi-header format.

Returns the header fields used by this propagator.

Injects trace context into a carrier using B3 multi-header format.

Functions

extract(Carrier, Ctx)

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

Extracts trace context from a carrier using B3 multi-header format.

fields()

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

Returns the header fields used by this propagator.

inject(Ctx, Carrier)

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

Injects trace context into a carrier using B3 multi-header format.