1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! [`TraceContext`]: W3C Trace Context for cross-service span
//! correlation.
//!
//! The axess `trace-id` middleware populates this from the inbound
//! `traceparent` header; subscribers can join an event back onto its
//! originating request span.
/// W3C Trace Context fields. Self-contained so the envelope crate
/// doesn't pull in `opentelemetry` as a dependency; adopters wiring
/// OTEL translate the fields at their edge via
/// [`opentelemetry-http`](https://docs.rs/opentelemetry-http) +
/// [`tracing-opentelemetry`](https://docs.rs/tracing-opentelemetry).
///
/// Field shapes match the W3C `traceparent` header:
/// `00-<trace_id 32 hex>-<span_id 16 hex>-<flags 2 hex>`.