Conversation
… on gen_ai spans v10 got `vercel.ai.telemetry.metadata.<key>` attributes from the AI SDK's own OTel spans. In v11, `ai` 4 to 6 go through the orchestrion subscriber, which never read `metadata`, so v11 dropped it. The orchestrion subscriber now passes the metadata to the channel subscriber, which sets it as span attributes when each span starts. The `invoke_agent`, `generate_content` and `embeddings` spans get the attributes, and `execute_tool` spans don't. This matches the AI SDK, which leaves metadata off its `ai.toolCall` spans. fixes JS-3800 fixes #24720 Re: #24706 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
isaacs
requested review from
JPeer264 and
mydea
and removed request for
a team
September 24, 2026 22:11
Contributor
size-limit report 📦
|
…n-experimental_telemetrymetadata-no-longer
JPeer264
reviewed
Sep 25, 2026
JPeer264
left a comment
Member
There was a problem hiding this comment.
Implementation LGTM. However I'm not sure if we should send vercel.ai specific attributes. I added @andreiborza and @RulaKhaled who know more about status quo on these fields and if we should (re-)add them
This branch has not been deployed
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.
v10 got
vercel.ai.telemetry.metadata.<key>attributes from the AI SDK's own OTel spans. In v11,ai4 to 6 go through the orchestrion subscriber, which never readmetadata, so v11 dropped it.The orchestrion subscriber now passes the metadata to the channel subscriber, which sets it as span attributes when each span starts. The
invoke_agent,generate_contentandembeddingsspans get the attributes, andexecute_toolspans don't. This matches the AI SDK, which leaves metadata off itsai.toolCallspans.fixes JS-3800
fixes #24720
Re: #24706