Skip to content

Conversation

@nicohrubec
Copy link
Member

We are exposing AI instrument methods for VercelAI enabling users to use it directly from the browser SDK.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.8 kB - -
@sentry/browser - with treeshaking flags 23.31 kB - -
@sentry/browser (incl. Tracing) 41.54 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.13 kB - -
@sentry/browser (incl. Tracing, Replay) 79.96 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.69 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.64 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.88 kB - -
@sentry/browser (incl. Feedback) 41.48 kB - -
@sentry/browser (incl. sendFeedback) 29.49 kB - -
@sentry/browser (incl. FeedbackAsync) 34.49 kB +0.08% +25 B 🔺
@sentry/react 26.52 kB - -
@sentry/react (incl. Tracing) 43.74 kB - -
@sentry/vue 29.25 kB - -
@sentry/vue (incl. Tracing) 43.34 kB - -
@sentry/svelte 24.82 kB - -
CDN Bundle 27.23 kB +0.09% +24 B 🔺
CDN Bundle (incl. Tracing) 42.24 kB +0.06% +24 B 🔺
CDN Bundle (incl. Tracing, Replay) 78.77 kB +0.04% +27 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 84.22 kB +0.03% +24 B 🔺
CDN Bundle - uncompressed 80.01 kB +0.06% +46 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 125.38 kB +0.04% +46 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 241.41 kB +0.02% +46 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 254.18 kB +0.02% +46 B 🔺
@sentry/nextjs (client) 45.96 kB - -
@sentry/sveltekit (client) 41.9 kB - -
@sentry/node-core 51.19 kB - -
@sentry/node 159.36 kB - -
@sentry/node - without tracing 92.83 kB +0.01% +1 B 🔺
@sentry/aws-serverless 108.08 kB +0.01% +1 B 🔺

View base workflow run

Lms24
Lms24 previously approved these changes Nov 27, 2025
Comment on lines +5 to +10
// These tests are not exhaustive because the instrumentation is
// already tested in the node integration tests and we merely
// want to test that the instrumentation does not crash in the browser
// and that gen_ai transactions are sent.

sentryTest('manual Vercel AI instrumentation sends gen_ai transactions', async ({ getLocalTestUrl, page }) => {
Copy link
Member

@Lms24 Lms24 Nov 27, 2025

Choose a reason for hiding this comment

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

m: I don't have a super strong opinion here but given node and browser do have their differences, I'd prefer a bit stricter tests where we test against more data. Helps us find issues as well. Ill also defer to @RulaKhaled for the final call. Whatever you think makes most sense :)

Update: I bumped this to logaf-M: Can we check against some data that should be aded from our instrumentation? The attribute we check against is from the manually started span, no?

@Lms24 Lms24 dismissed their stale review November 27, 2025 16:26

change of hart

@Lms24
Copy link
Member

Lms24 commented Nov 27, 2025

Sorry, I dismissed my review because @andreiborza brought up an important question around this being effective in browser. Let's clarify this first. Happy to re-✅ afterwards

@nicohrubec
Copy link
Member Author

Closing this as we don't use Otel in the browser so using the Vercel span processor in the browser doesn't do anything.

@nicohrubec nicohrubec closed this Nov 28, 2025
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