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: Properties?): Context

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: Properties, context: Context = Context.current()): Properties

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