Expand description
Trace context propagation helpers for grafos-rpc and grafos-mq.
This module provides functions to inject and extract trace context from binary headers (for RPC shared-memory transport) and from message headers (for MQ message passing).
The RPC propagation extends the shared-memory request region header with
a 32-byte trace context field. MQ propagation uses the "traceparent"
header key in the message’s headers field.
Constants§
- TRACEPARENT_
HEADER - The W3C header name used for MQ trace propagation.
Functions§
- decode_
binary - Decode a trace context from a 32-byte buffer read from an RPC header.
- encode_
binary - Encode a trace context into a 32-byte buffer suitable for embedding in an RPC shared-memory header.
- extract_
traceparent - Extract a trace context from a header list.
- extract_
traceparent_ strict - Extract a trace context from a header list, returning the parse error if the header is present but malformed.
- generate_
trace_ id - Generate a fresh W3C traceparent string suitable for correlation.
- inject_
traceparent - Inject a trace context as a W3C traceparent string into a header list.