Skip to content

fix(core): Standardize Vercel AI span descriptions to align with GenAI semantic conventions #19625

@github-actions

Description

@github-actions

Note

The pull request "fix(core): Standardize Vercel AI span descriptions to align with GenAI semantic conventions" was created by @RulaKhaled but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

  • Standardize invoke_agent pipeline span descriptions to use invoke_agent (with optional functionId suffix) instead of Vercel SDK function names like generateText or generateObject. This aligns with how other AI integrations (e.g. LangGraph) name their agent spans.
  • Unify all .do* content generation span descriptions under a single generate_content prefix (e.g. generate_content mock-model-id) instead of using individual prefixes like generate_text, stream_text, generate_object, stream_object.
  • Remove addOriginToSpan helper and inline the setAttribute call directly.

Metadata

Metadata

Assignees

Labels

No labels
No labels
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