SpanPropagator

Handles W3C Trace Context propagation via AMQP message headers.

Implements the W3C Trace Context specification for distributed tracing: https://www.w3.org/TR/trace-context/

Functions

Link copied to clipboard
fun extract(properties: <Error class: unknown class>?): <Error class: unknown class>

Extracts trace context from message properties headers. Returns parent context or root context if headers are missing/invalid.

Link copied to clipboard
fun inject(properties: <Error class: unknown class>, context: <Error class: unknown class> = Context.current()): <Error class: unknown class>

Injects trace context into message properties headers. Creates or updates the headers map with traceparent and tracestate.