Skip to content

Vercel AI V6 class-based agents have incorrect gen_ai.operation.name mapping #20284

Closed

Description

@nicohrubec

V6's ToolLoopAgent with functionId set causes operation.name to be ai.streamText myAgent instead of ai.streamText. The exact-match lookup in mapVercelAiOperationName misses this, leaving gen_ai.operation.name as the raw Vercel value instead of invoke_agent. Same issue affects child generate_content and execute_tool spans. Function-based usage without functionId is unaffected.

Activity

  1. self-assigned this
    on Apr 14, 2026
  2. linear-code commented on Apr 14, 2026

    @linear-code
  3. github-actions commented on Apr 16, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #20285, which was included in the 10.49.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugjavascriptPull requests that update javascript code

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions