Skip to main content

Module telemetry_headers

Module telemetry_headers 

Source
Expand description

Headers that carry a caller’s ray ID and W3C trace context into an actor, shared by every Rust peer of the actor HTTP surface: the runtime that reads them and the clients that send them.

Constants§

HEADER_RIVET_RAY_ID
Bounded correlation string that follows work across actors, surviving sampling and trace-root boundaries.
HEADER_TRACEPARENT
HEADER_TRACESTATE
RAY_BAGGAGE_KEY
W3C Baggage key that carries a ray ID through application code, so a request handler that received a ray ID can hand it to the actors it calls.

Functions§

bounded_ray_id
Returns value when it is a ray ID the runtime accepts: 1 to 30 characters of [A-Za-z0-9_-]. The value arrives from a caller, so anything else counts as absent.