Skip to content

chore(browser)!: drop browser support for AI integrations#22438

Open
nicohrubec wants to merge 1 commit into
developfrom
feat/drop-browser-ai-integrations
Open

chore(browser)!: drop browser support for AI integrations#22438
nicohrubec wants to merge 1 commit into
developfrom
feat/drop-browser-ai-integrations

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 21, 2026

Copy link
Copy Markdown
Member

Drops AI integrations (OpenAI, Anthropic, Google GenAI, LangChain, LangGraph, Vercel AI) from the browser SDK, since AI instrumentation is server-runtime only in v11.

The AI exports were living in core's shared entry (reachable from both browser and server). They're moved into the server-only entry so they stay available for all server SDKs but no longer ship in the browser SDK or its CDN bundles.

Fixes #22347

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b1946af. Configure here.

Comment thread packages/browser/src/index.ts
@nicohrubec nicohrubec changed the title feat(browser): drop AI integrations from browser SDK chore(browser): drop AI integrations from browser SDK Jul 21, 2026
@nicohrubec nicohrubec changed the title chore(browser): drop AI integrations from browser SDK feat(browser)!: drop AI integrations from browser SDK Jul 21, 2026
@nicohrubec
nicohrubec force-pushed the feat/drop-browser-ai-integrations branch from b1946af to b578b12 Compare July 21, 2026 15:00
@nicohrubec nicohrubec changed the title feat(browser)!: drop AI integrations from browser SDK chore(browser)!: drop AI integrations from browser SDK Jul 21, 2026
@nicohrubec
nicohrubec force-pushed the feat/drop-browser-ai-integrations branch from b578b12 to 8bc6f83 Compare July 21, 2026 15:00
@nicohrubec nicohrubec changed the title chore(browser)!: drop AI integrations from browser SDK chore(browser)!: drop browser support for AI integrations Jul 21, 2026
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.76 kB - -
@sentry/browser - with treeshaking flags 26.2 kB - -
@sentry/browser (incl. Tracing) 46.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.4 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.39 kB - -
@sentry/browser (incl. Tracing, Replay) 85.83 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.47 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.56 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.22 kB - -
@sentry/browser (incl. Feedback) 44.95 kB - -
@sentry/browser (incl. sendFeedback) 32.56 kB - -
@sentry/browser (incl. FeedbackAsync) 37.62 kB -0.19% -70 B 🔽
@sentry/browser (incl. Metrics) 28.84 kB - -
@sentry/browser (incl. Logs) 29.06 kB - -
@sentry/browser (incl. Metrics & Logs) 29.76 kB - -
@sentry/react 29.55 kB - -
@sentry/react (incl. Tracing) 48.87 kB - -
@sentry/vue 33.18 kB - -
@sentry/vue (incl. Tracing) 48.56 kB - -
@sentry/svelte 27.78 kB - -
CDN Bundle 30.1 kB -0.19% -57 B 🔽
CDN Bundle (incl. Tracing) 48.48 kB -0.16% -75 B 🔽
CDN Bundle (incl. Logs, Metrics) 31.68 kB -0.2% -62 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 49.78 kB -0.16% -78 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 70.94 kB -0.1% -66 B 🔽
CDN Bundle (incl. Tracing, Replay) 85.99 kB -0.08% -64 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.31 kB -0.08% -66 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 91.8 kB -0.08% -65 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.07 kB -0.07% -64 B 🔽
CDN Bundle - uncompressed 89.72 kB -0.2% -172 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 146.59 kB -0.12% -172 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.43 kB -0.19% -172 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.57 kB -0.12% -172 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.19 kB -0.08% -172 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.83 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.8 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.54 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.49 kB -0.07% -172 B 🔽
@sentry/nextjs (client) 51.38 kB - -
@sentry/sveltekit (client) 47 kB - -
@sentry/core/server 80.13 kB -0.22% -173 B 🔽
@sentry/core/browser 51.97 kB -22.1% -14.74 kB 🔽
@sentry/node-core 63.21 kB - -
@sentry/node 125.04 kB - -
@sentry/node (incl. diagnostics channel injection) 150.51 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB -0.01% -2 B 🔽
@sentry/node/light 51.33 kB -0.01% -1 B 🔽
@sentry/node - without tracing 74.91 kB -0.01% -1 B 🔽
@sentry/aws-serverless 84.16 kB - -
@sentry/cloudflare (withSentry) - minified 197.75 kB - -
@sentry/cloudflare (withSentry) 486.73 kB - -

View base workflow run

@nicohrubec
nicohrubec marked this pull request as ready for review July 21, 2026 15:45
@nicohrubec
nicohrubec requested a review from a team as a code owner July 21, 2026 15:45
@nicohrubec
nicohrubec requested review from andreiborza, logaretm and msonnb and removed request for a team July 21, 2026 15:45
AI instrumentation is server-runtime only in v11, so move the AI exports
out of core's shared entry into the server-only entry and remove the
browser re-exports, CDN bundles, lazy-load entries, and browser tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@logaretm
logaretm force-pushed the feat/drop-browser-ai-integrations branch from 8bc6f83 to e088f52 Compare July 21, 2026 18:43
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.

Drop browser support for AI integrations

1 participant