Variable: SpanStatusCode
ts
const SpanStatusCode: {
ERROR: 2;
OK: 1;
UNSET: 0;
};Defined in: packages/core/src/observability/Tracing.ts:68
Span status codes matching OpenTelemetry's SpanStatusCode enum.
UNSET(0) — Default. Used for validation errors (AI mistakes), unknown actions, and other non-system failures that should NOT trigger infrastructure alerts.OK(1) — Successful execution.ERROR(2) — System failure. Only used when the handler throws an unhandled exception. This WILL trigger alerts in OTel backends.
Type Declaration
| Name | Type | Default value | Defined in |
|---|---|---|---|
ERROR | 2 | 2 | packages/core/src/observability/Tracing.ts:68 |
OK | 1 | 1 | packages/core/src/observability/Tracing.ts:68 |
UNSET | 0 | 0 | packages/core/src/observability/Tracing.ts:68 |