Expand description
W3C Baggage on outbound calls, and OTEL_PROPAGATORS (audit C-10; ADR
0038 §1).
Opt-in, by key. Baggage is a data channel to whoever the next hop is,
and an A2A peer is often another organisation’s agent: forwarding every
entry would hand it whatever an upstream service put there (user.id,
tenant, a session). So nothing is sent until
ClientConfig::with_baggage_propagation names the keys that may cross
(BaggagePolicy::keys), or, knowingly, all of them
(BaggagePolicy::All). What is sent is bounded by the W3C limits (64
members, 8192 bytes, whole members only) and is the baggage of the
OpenTelemetry context the call runs in.
OTEL_PROPAGATORS. Read once, when the ClientConfig is made
(default tracecontext,baggage): without tracecontext the call writes no
traceparent of its own, without baggage no baggage; none turns off
both. A name this crate does not carry is warned about when the client is
built and ignored; a list of only such names gets the default.
Needs the otel feature, a tracing-opentelemetry layer recording, and a
transport with per-request headers (JSON-RPC, HTTP+JSON, gRPC), as the
traceparent does.
Structs§
- Propagators
- Which propagators
OTEL_PROPAGATORSturns on for the A2A wire.
Enums§
- Baggage
Policy - Which baggage entries cross the A2A wire.