instrument_propagator_b3 (instrument v1.0.0)

View Source

B3 Single-Header propagator.

Implements the B3 single-header format per openzipkin/b3-propagation: Format: {TraceId}-{SpanId}-{SamplingState}-{ParentSpanId}

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

Summary

Functions

Extracts trace context from a carrier using B3 single header format.

Returns the header fields used by this propagator.

Injects trace context into a carrier using B3 single header format. Format: {TraceId}-{SpanId}-{SamplingState}[-{ParentSpanId}]

Functions

extract(Carrier, Ctx)

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

Extracts trace context from a carrier using B3 single 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 single header format. Format: {TraceId}-{SpanId}-{SamplingState}[-{ParentSpanId}]