Expand description
Reusable trace metadata extraction, integrating rmcp-traces for inbound
RMCP request _meta.
This module owns the generic, protocol-level extraction step only. Turning the recovered fields into a product-specific trace-context type (with its own field names, propagation policy, and downstream plumbing) is a product adapter concern and stays out of this crate.
Structs§
- RawTrace
Fields - Raw W3C
traceparent/tracestateheader values recovered from_meta. - Trace
Meta Extraction - One bounded parse of request
_meta, keeping the validated summary and raw fields tied to the same input. - Trace
Summary
Enums§
Functions§
- extract_
trace_ meta - Parse request
_metaonce and derive both safe summary and gated raw fields. - raw_
trace_ fields_ from_ meta - Recover raw
traceparent/tracestatevalues from_meta, gated on the boundedTraceSummaryconfirming a validated trace id. ReturnsNonewhen no valid trace id was extracted (absent, malformed, or over budget). - trace_
summary_ from_ meta - Build a bounded
TraceSummaryfrom inbound RMCP request_meta.