Skip to content

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

Merged
RulaKhaled merged 2 commits intodevelopfrom
fix-description-in-vercel-ai
Mar 4, 2026
Merged

fix(core): Standardize Vercel AI span descriptions to align with GenAI semantic conventions#19624
RulaKhaled merged 2 commits intodevelopfrom
fix-description-in-vercel-ai

Conversation

@RulaKhaled
Copy link
Contributor

@RulaKhaled RulaKhaled commented Mar 4, 2026

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

Closes #19625 (added automatically)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.63 kB - -
@sentry/browser - with treeshaking flags 24.13 kB - -
@sentry/browser (incl. Tracing) 42.43 kB - -
@sentry/browser (incl. Tracing, Profiling) 47.09 kB - -
@sentry/browser (incl. Tracing, Replay) 81.25 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.87 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.95 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 98.21 kB - -
@sentry/browser (incl. Feedback) 42.44 kB - -
@sentry/browser (incl. sendFeedback) 30.3 kB - -
@sentry/browser (incl. FeedbackAsync) 35.35 kB - -
@sentry/browser (incl. Metrics) 26.8 kB - -
@sentry/browser (incl. Logs) 26.94 kB - -
@sentry/browser (incl. Metrics & Logs) 27.61 kB - -
@sentry/react 27.38 kB - -
@sentry/react (incl. Tracing) 44.77 kB - -
@sentry/vue 30.08 kB - -
@sentry/vue (incl. Tracing) 44.3 kB - -
@sentry/svelte 25.66 kB - -
CDN Bundle 28.17 kB - -
CDN Bundle (incl. Tracing) 43.26 kB - -
CDN Bundle (incl. Logs, Metrics) 29.01 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 44.1 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 68.09 kB - -
CDN Bundle (incl. Tracing, Replay) 80.14 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.65 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.53 kB - -
CDN Bundle - uncompressed 82.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 128.07 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.19 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.9 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 208.85 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.95 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 247.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.67 kB - -
@sentry/nextjs (client) 47.18 kB - -
@sentry/sveltekit (client) 42.89 kB - -
@sentry/node-core 52.25 kB +0.02% +9 B 🔺
@sentry/node 174.71 kB -0.02% -19 B 🔽
@sentry/node - without tracing 97.39 kB +0.02% +11 B 🔺
@sentry/aws-serverless 113.2 kB +0.01% +8 B 🔺

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,463 - 9,293 +2%
GET With Sentry 1,652 17% 1,651 +0%
GET With Sentry (error only) 6,159 65% 5,840 +5%
POST Baseline 1,187 - 1,179 +1%
POST With Sentry 571 48% 583 -2%
POST With Sentry (error only) 1,053 89% 1,011 +4%
MYSQL Baseline 3,234 - 3,167 +2%
MYSQL With Sentry 357 11% 486 -27%
MYSQL With Sentry (error only) 2,630 81% 2,636 -0%

View base workflow run

Copy link
Member

@nicohrubec nicohrubec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RulaKhaled RulaKhaled enabled auto-merge (squash) March 4, 2026 10:04
@RulaKhaled RulaKhaled merged commit 201eccd into develop Mar 4, 2026
437 of 439 checks passed
@RulaKhaled RulaKhaled deleted the fix-description-in-vercel-ai branch March 4, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants