SpanStatus
Allowed status values for a Span.Import
Definition
Values
| Value | Description |
|---|---|
'success' | The span completed successfully with the expected result. |
'failure' | The span encountered an error and did not produce a valid result. |
'aborted' | The span was terminated before completion due to an external signal (e.g., timeout). |
'cancelled' | The span was intentionally stopped by the caller before it finished. |
'unknown' | The status was not explicitly set. This is the default when no status is provided. |
SpanStatus does not include 'pending'. The 'pending' value is only available on TraceStatus, since a trace can represent an in-progress operation, while individual spans are expected to resolve before being flushed.