Skip to content

ref(core)!: Remove experimental enableMetrics / beforeSendMetric flags - #23276

Merged
nicohrubec merged 1 commit into
developfrom
nh/experimental-metrics-removal
Aug 11, 2026
Merged

ref(core)!: Remove experimental enableMetrics / beforeSendMetric flags#23276
nicohrubec merged 1 commit into
developfrom
nh/experimental-metrics-removal

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 11, 2026

Copy link
Copy Markdown
Member

Metrics are now stable, so this removes the experimental _experiments.enableMetrics and _experiments.beforeSendMetric fallbacks in favor of the top-level options.

Fixes #22258

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.25 kB -0.05% -13 B 🔽
@sentry/browser - with treeshaking flags 28.43 kB -0.05% -14 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.76 kB -0.05% -13 B 🔽
@sentry/browser (incl. Tracing) 48.49 kB -0.03% -10 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 48.51 kB -0.02% -9 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.39 kB -0.03% -13 B 🔽
@sentry/browser (incl. Tracing, Replay) 87.92 kB -0.02% -14 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.29 kB -0.02% -13 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 92.63 kB -0.02% -15 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 105.31 kB -0.02% -15 B 🔽
@sentry/browser (incl. Feedback) 47.56 kB -0.04% -16 B 🔽
@sentry/browser (incl. sendFeedback) 35.07 kB -0.04% -14 B 🔽
@sentry/browser (incl. FeedbackAsync) 40.22 kB -0.04% -14 B 🔽
@sentry/browser (incl. Metrics) 31.26 kB -0.1% -30 B 🔽
@sentry/browser (incl. Logs) 31.54 kB -0.04% -11 B 🔽
@sentry/browser (incl. Metrics & Logs) 32.2 kB -0.12% -38 B 🔽
@sentry/react 32.05 kB -0.05% -13 B 🔽
@sentry/react (incl. Tracing) 50.67 kB -0.04% -19 B 🔽
@sentry/vue 35.31 kB -0.04% -14 B 🔽
@sentry/vue (incl. Tracing) 50.44 kB -0.03% -12 B 🔽
@sentry/svelte 30.27 kB -0.05% -14 B 🔽
CDN Bundle 31.51 kB -0.04% -12 B 🔽
CDN Bundle (incl. Tracing) 48.8 kB -0.03% -11 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.72 kB -0.11% -35 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 50.75 kB -0.07% -31 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 74.26 kB -0.06% -40 B 🔽
CDN Bundle (incl. Tracing, Replay) 86.39 kB -0.02% -11 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.29 kB -0.04% -32 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 92.09 kB -0.02% -13 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.09 kB -0.04% -34 B 🔽
CDN Bundle - uncompressed 93.56 kB -0.04% -36 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 146.45 kB -0.03% -37 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.96 kB -0.1% -94 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.25 kB -0.07% -95 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 228.89 kB -0.05% -95 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.7 kB -0.02% -37 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.48 kB -0.04% -95 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.4 kB -0.02% -37 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.17 kB -0.04% -95 B 🔽
@sentry/nextjs (client) 53.23 kB -0.03% -13 B 🔽
@sentry/sveltekit (client) 48.9 kB -0.03% -14 B 🔽
@sentry/core/server 65.43 kB -0.04% -24 B 🔽
@sentry/core/browser 51.78 kB -0.05% -23 B 🔽
@sentry/node 117.91 kB -0.02% -13 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.03 kB -0.03% -18 B 🔽
@sentry/aws-serverless 91.44 kB -0.02% -12 B 🔽
@sentry/cloudflare (withSentry) - minified 214.03 kB -0.03% -43 B 🔽
@sentry/cloudflare (withSentry) 528.61 kB -0.01% -45 B 🔽

View base workflow run

@nicohrubec
nicohrubec marked this pull request as ready for review August 11, 2026 11:56
@nicohrubec
nicohrubec merged commit f2b3082 into develop Aug 11, 2026
274 checks passed
@nicohrubec
nicohrubec deleted the nh/experimental-metrics-removal branch August 11, 2026 12:10
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.

core: remove experimental enableMetrics / beforeSendMetric flags

2 participants