Why and how Tracing spans
⚓ Rust 📅 2026-03-02 👤 surdeus 👁️ 2I am looking at an observability setup, in which logs go through tracing, then get exported in hotel format, and end up in Grafana.
Where I look at them, and realize that all the fields I've painstakingly recorded into my spans have disappeared without a (ha) trace!
It seems like I need to manually attach them to events. We'll, we've got a Layer, I'll just add a on_event and record extra fields from a span into it. Except that the record method on Event takes... A Visitor? Which sounds like the opposite of what I want, despite the docs otherwise using verbiage like "record fields into an Event".
The API of tracing seems to be purporse-made to be confusing to my brain specifically.
Anyways, am I even going in the right direction here?
1 post - 1 participant
🏷️ Rust_feed