Title: Tracing-only browser setup still bundles error-event code · Issue #26128 · getsentry/sentry-javascript · GitHub
Open Graph Title: Tracing-only browser setup still bundles error-event code · Issue #26128 · getsentry/sentry-javascript
X Title: Tracing-only browser setup still bundles error-event code · Issue #26128 · getsentry/sentry-javascript
Description: A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is BrowserClient with only browserTracingIntegration, no default integrations, and span streaming (the 11.x default). In a minified esbuild ...
Open Graph Description: A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is BrowserClient with only browserTracingIntegration, no default integrations, and span streaming (t...
X Description: A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is BrowserClient with only browserTracingIntegration, no default integrations, and span streamin...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26128
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tracing-only browser setup still bundles error-event code","articleBody":"A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is `BrowserClient` with only `browserTracingIntegration`, no default integrations, and span streaming (the 11.x default).\n\n- In a minified esbuild build on 11.10.0, the Sentry SDK comes to 119.2 KB raw after removing the default integrations and debug code.\n- About 9.6 KB raw of that is error-event code. These files look unused when no error events are captured (inference, not traced at runtime):\n - `browser/eventbuilder.js`: 2,813 B\n - `core/utils/prepareEvent.js`: 2,451 B\n - `core/utils/normalize.js`: 1,461 B\n - `browser/stack-parsers.js`: 1,418 B\n - `core/session.js`: 881 B\n - `core/utils/stacktrace.js`: 840 B\n- `BrowserClient` and `Client` pull these in statically through `eventFromException`, `eventFromMessage` and `prepareEvent`. A tracing-only app has no way to drop them.\n- Related: #22580 covers the transaction code paths in streaming mode (`utils/transactionEvent.js` and envelope helpers, about 3 KB raw in the same build).\n\nSeen in getsentry/junior's dashboard, which sends performance spans only and never error events, so that conversation content can't leak into events.\n\n\u003c!-- junior-request-attribution:start -->\nvia @BYK.\n\u003c!-- junior-request-attribution:end -->\n\n\u003c!-- junior-session-footer:start -->\n\u003c!-- junior-conversation-id:local%3Aweb%3A17b6d7f555623680001f2a90 -->\n\n--\n\n[View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A17b6d7f555623680001f2a90/?project=4510944073809921)\n\n\u003c!-- junior-session-footer:end -->","author":{"url":"https://github.com/apps/sentry-junior","@type":"Person","name":"sentry-junior"},"datePublished":"2026-11-05T12:49:29Z","url":"https://github.com/getsentry/sentry-javascript/issues/26128"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:180f87a1-96e1-17ba-bca7-b96a6881266f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E04E:1C8FCC:1ECEE2:297A2A:6B04392F |
| html-safe-nonce | 3358e51217e35f61767a797b9ddb500c001a5cf45893ae642caf2b5ee8e79649 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDRFOjFDOEZDQzoxRUNFRTI6Mjk3QTJBOjZCMDQzOTJGIiwidmlzaXRvcl9pZCI6IjczMjQ3NzEwNzI0NTk2ODQxNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de21633d28ebd51671f3587d1f15f22e5a75d6785e2b451332db400701c03f7f |
| hovercard-subject-tag | issue:6223505063 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/26128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a9fa0c07acf22a2c268624b9aab5184c5d9cd22625e894e13cc9e60548b1688b/getsentry/sentry-javascript/issues/26128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a9fa0c07acf22a2c268624b9aab5184c5d9cd22625e894e13cc9e60548b1688b/getsentry/sentry-javascript/issues/26128 |
| og:image:alt | A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is BrowserClient with only browserTracingIntegration, no default integrations, and span streaming (t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sentry-junior[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width