npm / @ai-sdk/otel
@ai-sdk/otel
What changed in @ai-sdk/otel 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking3 new APIs and options3 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ai-sdk/otel 113 changes
Breaking changes 2
The API name changed from evaluate to decide.
Packages are compiled for the ES2022 runtime target, which may affect runtime compatibility.
New APIs and options 3
Experimental streaming lifecycle callbacks are added.
Telemetry is added to speech generation and transcription.
Adds telemetry support to experimental_evaluate, allowing developers to use telemetry with it.
Behavior and default changes 3
Model-call spans record normalized state parts, while outer spans retain the public state inputs.
Telemetry includes provider usage propagation.
Runtime context attribution is added to embed, embedMany, and rerank.
Fixes and other changes 5
Decision model response identifiers are now recorded.
Decision file bytes are serialized as base64 in OpenTelemetry state attributes.
Spans are marked with status ERROR when the finish reason is error.
API error spans preserve HTTP status codes.
Fallback spans are attributed to the provider that succeeds.