Packages

@ai-sdk/otel

1.0.178 · 20 Nov 2026Apache-2.03.9M / weekRepositoryHomepagenpmAtom feed

Your version

169 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.0.178

    20 Nov 2026
    • Add telemetry, runtime context and lifecycle callbacks to experimental_extract

  2. 1.0.177

    18 Nov 2026
    • otel: End the span of a model call when a stream retry or a steering interrupt starts a new one

  3. 1.0.175 – 1.0.1762 releases that only update dependenciesai 7.0.176Show each
  4. 1.0.174

    17 Nov 2026
    • otel: Record gen_ai.output.messages parts in the order the model produced them

      Output messages previously grouped parts by type (reasoning, then all text joined into one part, then tool calls), so they did not match the same assistant message in the next step's gen_ai.input.messages. Output parts now follow the content order, text blocks are no longer merged, and file, reasoning file, custom, tool error, and tool approval parts are emitted on both the output and input side. The root span records the content of all steps in order, including text from earlier steps. Adds formatOutputContent and deprecates formatOutputMessages.

    • otel: Redact Google MCP server credentials in tool definitions

      Plain google.mcp_server tool definitions do not carry a provider-owned
      telemetry redaction annotation, for example when they are built by hand or come
      from an older @ai-sdk/google version. Both OTel integrations now redact every
      google.mcp_server header value in telemetry-only copies, so MCP connector
      credentials no longer reach ai.prompt.tools or gen_ai.tool.definitions.

  5. 1.0.169 – 1.0.1735 releases that only update dependenciesai 7.0.173@ai-sdk/provider 4.0.38Show each
  6. 1.0.168

    10 Nov 2026
    • Restore credential redaction for unannotated OpenAI MCP, Code Interpreter, and shell tool definitions in both OpenTelemetry integrations. This preserves protection for older providers and plain provider tool definitions without changing application or provider arguments.

  7. 1.0.166

    9 Nov 2026
    • Export the GenAI message and system instruction formatting helpers and their output types for reuse outside the telemetry integration.

  8. 1.0.164 – 1.0.1652 releases that only update dependenciesai 7.0.165@ai-sdk/provider 4.0.37Show each
  9. 1.0.163

    5 Nov 2026
    • Report the actual OpenAI Chat HTTP endpoint (also used by Azure Chat and Bedrock Mantle Chat) through optional request metadata and model-call end events. Record its host and port on OpenTelemetry chat spans without exposing URL credentials, paths, queries, or fragments. Expose only the sanitized HTTP origin in text and object generation results and step/finish callbacks. Providers that do not report an endpoint leave these attributes unset.

    • Redact Code Interpreter and shell domain secret values, plus MCP authorization and header values, from tool definitions exported by both telemetry integrations, while preserving the credentials in provider requests. Azure tools that share these definitions receive the same redaction.

  10. 1.0.162

    3 Nov 2026
    • Support a single telemetry operation for durable WorkflowAgent runs, including the prompt, final output, steps, and tools. Events recorded in the workflow are reported on completion or suspension with their original timestamps. For OpenTelemetry, pass the same OpenTelemetryIdGenerator instance as the tracer provider's idGenerator and sampler and as new OpenTelemetry({ durable }). This explicit bridge carries parent trace context and sampling across steps, reports model spans live with provider requests nested beneath them, and reconstructs the enclosing invoke_agent tree when the run completes. Without the bridge, existing live per-model tracing is preserved. Add typed experimental durable context hooks for telemetry integrations; remove reliance on process-global ID-generator detection.

  11. 1.0.161

    2 Nov 2026

    Only updates a dependency:ai 7.0.161

  12. 1.0.160

    2 Nov 2026
    • Record the gen_ai.client.inference.duration OpenTelemetry histogram in seconds for generateText and streamText model calls, including errors, cancellation, and failed stream retry attempts, so configured metric exporters can report inference latency.

  13. 1.0.155 – 1.0.1595 releases that only update dependenciesai 7.0.159@ai-sdk/provider 4.0.35Show each
  14. 1.0.154

    26 Oct 2026
    • Add onStepError callback to generateText, streamText, ToolLoopAgent and telemetry integrations, and onError and onAbort to ToolLoopAgent

  15. 1.0.150 – 1.0.1534 releases that only update dependencies@ai-sdk/provider 4.0.34ai 7.0.153Show each
  16. 1.0.149

    22 Oct 2026
    • Add an agentSpanName option to OpenTelemetry to name root agent spans using functionId or a custom callback. Preserve model-based span names by default.

  17. 1.0.139 – 1.0.14810 releases that only update dependenciesai 7.0.148@ai-sdk/provider 4.0.31Show each
  18. 1.0.138

    12 Oct 2026
    • otel: Record decision model response identifiers

  19. 1.0.134 – 1.0.1374 releases that only update dependenciesai 7.0.137@ai-sdk/provider 4.0.26Show each
  20. 1.0.133

    8 Oct 2026
    • Add ordered text, file, and JSON parts to experimental decision state. Support image input in OpenAI Decisions and language model adapters. Gateway retains its existing string and JSON request format and rejects files, as does TypeSafe AI.

      Arrays passed directly as state now contain decision state parts. Wrap JSON arrays in an object or a json part.

      Normalize all public state forms into an array of parts before calling decision providers. Providers receive text and JSON objects as text and json parts.

      Serialize decision file bytes as base64 in OpenTelemetry state attributes. Model-call spans record normalized state parts, while outer spans retain public state inputs.

      Preserve native JSON state in TypeSafe AI when state contains one JSON part. Label shared state in language-model decision prompts.

  21. 1.0.129 – 1.0.1324 releases that only update dependenciesai 7.0.132@ai-sdk/provider 4.0.24Show each
  22. 1.0.128

    5 Oct 2026
    • Rename evaluate to decide

    • otel: Mark span status as ERROR when finish reason is error

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.