Skip to content

feat(core)!: Remove enableMetrics option - #23321

Open
nicohrubec wants to merge 3 commits into
developfrom
feat/remove-enable-metrics-flag
Open

feat(core)!: Remove enableMetrics option#23321
nicohrubec wants to merge 3 commits into
developfrom
feat/remove-enable-metrics-flag

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 12, 2026

Copy link
Copy Markdown
Member

Removes the enableMetrics option for v11. Metrics are now captured whenever a metric API (Sentry.metrics.*) is used, with no way to disable them. beforeSendMetric is unaffected and stays available.

Fixes #23309

Similar to #23319

Removes the enableMetrics option entirely. Metrics are now captured
whenever a metric API is used, with no way to disable them.
beforeSendMetric is unaffected and remains available.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.28 kB -0.04% -11 B 🔽
@sentry/browser - with treeshaking flags 28.46 kB -0.04% -10 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.8 kB -0.03% -7 B 🔽
@sentry/browser (incl. Tracing) 48.52 kB -0.03% -10 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 48.54 kB -0.03% -10 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.42 kB -0.02% -10 B 🔽
@sentry/browser (incl. Tracing, Replay) 87.91 kB -0.02% -11 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.33 kB -0.02% -9 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 92.63 kB -0.02% -11 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 105.33 kB -0.02% -11 B 🔽
@sentry/browser (incl. Feedback) 47.61 kB -0.03% -11 B 🔽
@sentry/browser (incl. sendFeedback) 35.11 kB -0.03% -9 B 🔽
@sentry/browser (incl. FeedbackAsync) 40.26 kB -0.03% -9 B 🔽
@sentry/browser (incl. Metrics) 31.23 kB -0.16% -50 B 🔽
@sentry/browser (incl. Logs) 31.53 kB -0.04% -10 B 🔽
@sentry/browser (incl. Metrics & Logs) 32.16 kB -0.16% -50 B 🔽
@sentry/react 32.08 kB -0.04% -12 B 🔽
@sentry/react (incl. Tracing) 50.71 kB -0.02% -9 B 🔽
@sentry/vue 35.3 kB -0.03% -9 B 🔽
@sentry/vue (incl. Tracing) 50.47 kB -0.03% -11 B 🔽
@sentry/svelte 30.3 kB -0.04% -10 B 🔽
CDN Bundle 31.59 kB -0.04% -10 B 🔽
CDN Bundle (incl. Tracing) 48.84 kB -0.02% -9 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.8 kB -0.04% -12 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 50.79 kB -0.04% -19 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 74.34 kB -0.02% -13 B 🔽
CDN Bundle (incl. Tracing, Replay) 86.44 kB -0.02% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.3 kB -0.02% -15 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 92.14 kB -0.02% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.11 kB -0.02% -14 B 🔽
CDN Bundle - uncompressed 93.8 kB -0.03% -27 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 146.63 kB -0.02% -28 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.17 kB -0.07% -66 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.39 kB -0.05% -67 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.1 kB -0.03% -67 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.89 kB -0.02% -28 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.63 kB -0.03% -67 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.59 kB -0.02% -28 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.32 kB -0.03% -67 B 🔽
@sentry/nextjs (client) 53.26 kB -0.04% -16 B 🔽
@sentry/sveltekit (client) 48.93 kB -0.03% -12 B 🔽
@sentry/core/server 65.37 kB -0.06% -36 B 🔽
@sentry/core/browser 51.74 kB -0.06% -30 B 🔽
@sentry/node 117.94 kB -0.01% -9 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.05 kB -0.02% -9 B 🔽
@sentry/aws-serverless 91.45 kB -0.01% -9 B 🔽
@sentry/cloudflare (withSentry) - minified 213.84 kB -0.02% -35 B 🔽
@sentry/cloudflare (withSentry) 528.19 kB -0.03% -108 B 🔽

View base workflow run

nicohrubec and others added 2 commits August 12, 2026 10:54
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec marked this pull request as ready for review August 12, 2026 09:27
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.

Remove enableMetrics flag from the SDK

2 participants