Skip to content

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

@nicohrubec

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.

Metadata

Metadata

Assignees

Labels

BugjavascriptPull requests that update javascript code
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions