Packages

@ai-sdk/otel

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

Your version

1.0.174

17 Nov 2026Where it was published

1.0.178 is the newest release of 1.x.

In short

2 fixed1 internal

Release note

Patch Changes

  • 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.

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.