Skip to content

feat(core): Add support for tracking provider metadata #16992

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

Merged
merged 2 commits into from
Jul 15, 2025

Conversation

AbhiPrasad
Copy link
Member

In https://github.com/vercel/ai/releases/tag/ai%404.3.17 of the ai SDK, provider metadata got exposed (vercel/ai@a288694)

This is included in the ai.response.providerMetadata property.

To get more detailed, info, we parse ai.response.providerMetadata and attach attributes as appropriate. Still need some help with the naming.

resolves https://linear.app/getsentry/issue/JS-661/add-support-for-cached-and-reasoning-tokens

@AbhiPrasad AbhiPrasad requested a review from a team July 14, 2025 17:09
@AbhiPrasad AbhiPrasad self-assigned this Jul 14, 2025
@AbhiPrasad AbhiPrasad requested review from stephanie-anderson and andreiborza and removed request for a team July 14, 2025 17:09
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Jul 14, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.88 kB - -
@sentry/browser - with treeshaking flags 22.35 kB - -
@sentry/browser (incl. Tracing) 39.75 kB - -
@sentry/browser (incl. Tracing, Replay) 77.88 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.7 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 82.58 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 94.69 kB - -
@sentry/browser (incl. Feedback) 40.58 kB - -
@sentry/browser (incl. sendFeedback) 28.56 kB - -
@sentry/browser (incl. FeedbackAsync) 33.46 kB - -
@sentry/react 25.61 kB - -
@sentry/react (incl. Tracing) 41.72 kB - -
@sentry/vue 28.31 kB - -
@sentry/vue (incl. Tracing) 41.53 kB - -
@sentry/svelte 23.9 kB - -
CDN Bundle 25.18 kB - -
CDN Bundle (incl. Tracing) 39.44 kB - -
CDN Bundle (incl. Tracing, Replay) 75.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.87 kB - -
CDN Bundle - uncompressed 73.54 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.99 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 231.17 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.98 kB - -
@sentry/nextjs (client) 43.32 kB - -
@sentry/sveltekit (client) 40.2 kB - -
@sentry/node 167.84 kB +0.15% +238 B 🔺
@sentry/node - without tracing 100.3 kB -0.01% -1 B 🔽
@sentry/aws-serverless 128.41 kB - -

View base workflow run

@AbhiPrasad AbhiPrasad merged commit 8a96366 into develop Jul 15, 2025
168 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-reasoning-cache-token-vercel-ai branch July 15, 2025 13:51
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.

2 participants