Skip to content

Commit 0ca618e

Browse files
micheleRPclaude
andcommitted
fix OTLP status code values: 0=UNSET, 1=OK, 2=ERROR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 686324b commit 0ca618e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/ai-agents/pages/observability/ingest-custom-traces.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Each trace must follow the OTLP specification with these required fields:
8787
| Identifies the library that created the span
8888

8989
| `status`
90-
| Operation status with code (0 = OK, 2 = ERROR)
90+
| Operation status with code (0 = UNSET, 1 = OK, 2 = ERROR)
9191
|===
9292

9393
Optional but recommended fields:
@@ -538,7 +538,7 @@ Before deploying to production, verify your traces match the expected format:
538538
* `traceId`, `spanId`, `name`
539539
* `startTimeUnixNano`, `endTimeUnixNano`
540540
* `instrumentationScope` with a `name` field
541-
* `status` with a `code` field (0 for success, 2 for error)
541+
* `status` with a `code` field (1 for success, 2 for error)
542542
. Check that `service.name` is set in the resource attributes to identify your agent in the Transcripts view.
543543
. Verify GenAI semantic convention attributes if you want proper display in the Transcripts view:
544544
* `gen_ai.operation.name` set to `"invoke_agent"` for agent spans

0 commit comments

Comments
 (0)