Content-Length: 307673 | pFad | http://github.com/getsentry/sentry-javascript/pull/16721

07 feat(node): Update vercel ai integration attributes by AbhiPrasad · Pull Request #16721 · getsentry/sentry-javascript · GitHub
Skip to content

feat(node): Update vercel ai integration attributes #16721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

AbhiPrasad
Copy link
Member

Make changes to the Vercel AI integration as per https://www.notion.so/sentry/Agent-Monitoring-SDK-differences-21c8b10e4b5d80bcab51f72ae1418ea8

AI summary:

Key Improvements:

  1. Eliminated duplicate attributes - Tool call and prompt attributes are now renamed instead of duplicated
  2. Added tool input/output support - New gen_ai.tool.input and gen_ai.tool.output attributes
  3. Auto-sets tool type - Automatically adds gen_ai.tool.type: 'function' for tool calls
  4. Better OpenTelemetry compliance - Cleaner attribute mapping following semantic conventions

Technical Changes:

  • Uses renameAttributeKey() consistently instead of duplicating attributes
  • Removes old ai.* attributes after creating new gen_ai.* ones

@AbhiPrasad AbhiPrasad requested review from ArthurKnaus and a team June 24, 2025 16:00
@AbhiPrasad AbhiPrasad self-assigned this Jun 24, 2025
@AbhiPrasad AbhiPrasad requested review from Lms24 and chargome and removed request for a team June 24, 2025 16:00
Copy link
Contributor

github-actions bot commented Jun 24, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.99 kB - -
@sentry/browser - with treeshaking flags 23.76 kB - -
@sentry/browser (incl. Tracing) 38.84 kB - -
@sentry/browser (incl. Tracing, Replay) 76.98 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.07 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 81.74 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 93.83 kB - -
@sentry/browser (incl. Feedback) 40.74 kB - -
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.59 kB - -
@sentry/react 25.76 kB - -
@sentry/react (incl. Tracing) 40.84 kB - -
@sentry/vue 28.36 kB - -
@sentry/vue (incl. Tracing) 40.7 kB - -
@sentry/svelte 24.01 kB - -
CDN Bundle 25.5 kB - -
CDN Bundle (incl. Tracing) 38.92 kB - -
CDN Bundle (incl. Tracing, Replay) 74.83 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.29 kB - -
CDN Bundle - uncompressed 74.5 kB - -
CDN Bundle (incl. Tracing) - uncompressed 115.42 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 229.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 242.3 kB - -
@sentry/nextjs (client) 42.47 kB - -
@sentry/sveltekit (client) 39.33 kB - -
@sentry/node 150.92 kB +0.03% +42 B 🔺
@sentry/node - without tracing 98.63 kB - -
@sentry/aws-serverless 124.4 kB - -

View base workflow run

@AbhiPrasad AbhiPrasad force-pushed the abhi-vercel-ai-attribute-changes branch from 55520e2 to e3cfd57 Compare June 24, 2025 19:31
Copy link
Member

@ArthurKnaus ArthurKnaus left a comment

Choose a reason for hiding this comment

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

🙌 thx for the quick changes!

@mydea
Copy link
Member

mydea commented Jun 25, 2025

note: This may conflict with #16732, whatever we merge first needs to be adjusted accordingly!

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.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/pull/16721

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy