fix(observability): improve OTLP ingestion resilience and fix TS/Node examples#3855
Merged
mmabrouk merged 9 commits intorelease/v0.87.2from Feb 27, 2026
Merged
fix(observability): improve OTLP ingestion resilience and fix TS/Node examples#3855mmabrouk merged 9 commits intorelease/v0.87.2from
mmabrouk merged 9 commits intorelease/v0.87.2from
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…/Node examples - Parse JSON strings for all ag.data.* fields EXCEPT outputs - Fix Node.js OTel example: gpt-5 -> gpt-4o-mini, remove unused import - Fix OTel quickstart docs: add missing packages, imports, error handling
b1160a1 to
635c66d
Compare
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Railway Preview Environment
Updated at 2026-02-27T19:31:25.388Z |
fix(observability): add best-effort resilience to OTLP ingestion pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the TypeScript/Node.js OpenTelemetry quickstart and makes OTLP
ag.data.*parsing more resilient.Problem
OTel JS/TS SDKs send structured attributes as strings because
setAttribute()only accepts primitives (string | number | boolean | Array).Agenta expected structured values under
ag.data.*, so stringified JSON could fail validation and lead to dropped span data.Changes
Backend (
api/oss/src/apis/fastapi/tracing/utils.py)ag.data.*fields exceptag.data.outputsoutputsuntouched because it can legitimately be plain text (LLM completion string)Example fixes (
examples/node/observability-opentelemetry/)gpt-5->gpt-4o-mini(non-existent model fix)BatchSpanProcessorimportDocs fixes (
docs/docs/observability/03-quick-start-opentelemetry.mdx)@opentelemetry/sdk-trace-base,dotenvimport \"dotenv/config\";AGENTA_HOST/AGENTA_API_KEYextractiongpt-3.5-turbotogpt-4o-miniforceFlush()handling and improved error handlingWhy parse everything except
outputs?outputsis the only field that commonly needs to remain a raw stringag.data.*fields often arrive JSON-stringified from OTEL JS and benefit from best-effort parseVerification
openai@6.25.0@arizeai/openinference-instrumentation-openai@4.0.5@arizeai/openinference-semantic-conventions@2.1.7