span status
A field on a span recording whether its operation failed (Error) or was explicitly marked as successful (Ok).
In more detail
Mark failure on the span where it actually happened. A failed child span can end with an error status while its parent records the broader request failure too.
Example
pay.set("http.response.status_code", 500).end("ERROR")Related terms
- span — One timed operation within a trace, such as handling a request or running a query, with its start, duration and attributes.
- ERROR — The log level for work that was actually lost: a request failed and the user did not get what they asked for.
Taught in
- Traces, Spans And Context Propagation — Full-Stack Observability: Metrics, Tracing & Logging
- Traces From A Script Nobody Touched: Instrumentation Approaches — OpenTelemetry Certified Associate (OTCA) Exam Prep
- A Warning With An Address: Correlating Signals — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Three Hundred Milliseconds In One Place: Tracing In Code — OpenTelemetry Certified Associate (OTCA) Exam Prep