SpanStatus
Allowed status values for a Span.Overview
SpanStatus defines the lifecycle states a span can be in. Every span has a status that indicates whether the operation completed, failed, or was interrupted. The default status is "unknown".
Import
Type Definition
SpanStatus is a str literal with the following allowed values:
Usage
Setting status on a new span
Updating status after an LLM call
Comparison with TraceStatus
Related
- Span — the class that uses
SpanStatus - TraceStatus — the equivalent status type for traces (includes
"pending") - Trace — parent container for spans