You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Client constructor in packages/core/src/client.ts (L318–327) always calls setupWeightBasedFlushing for both logs and metrics. That statically pulls _INTERNAL_flushLogsBuffer / _INTERNAL_flushMetricsBuffer, the log and metric envelope builders, and the size estimators into every bundle, even when an app never captures a log or metric.
Measured with esbuild 0.27.7 (minify, ESM, platform browser, __SENTRY_DEBUG__: false) on a tracing-only setup (BrowserClient + browserTracingIntegration, setCurrentClient, client.init()): 2,068 B raw / 445 B br-11 of this code (131,185 B raw total).
Activity
linear-code commentedon Nov 5, 2026
JS-4078
ref(core): Set up log and metric flushing on first capture (getsentry…
ref(core): Set up log and metric flushing on first capture (getsentry…
github-actions commentedon Nov 10, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #26146, which was included in the 11.12.0 release.