Span Attributes, Events, and Status
Learn to enrich spans with meaningful attributes, record timed events, and set span status so traces are diagnostic and not just timing data.
Beyond Timing
A span knows its duration automatically, but raw timing is rarely enough. Enriching spans with attributes, events, and status makes traces tell a story.
Span Attributes
Attributes are key-value pairs that add context to a span, like the route handled or the number of rows returned.
span.set_attribute("http.route", "/orders/:id")
span.set_attribute("db.rows", 42)All lessons in this course
- Auto-Instrumentation Techniques
- Manual Instrumentation Best Practices
- Context Propagation and Baggage
- Span Attributes, Events, and Status