Skip to content

ref(browser)!: Remove the web vital report event attribute - #24511

Merged
logaretm merged 2 commits into
developfrom
awad/remove-web-vital-report-event
Sep 21, 2026
Merged

logaretm merged 2 commits into
developfrom
awad/remove-web-vital-report-event

Conversation

@logaretm

@logaretm logaretm commented Sep 18, 2026

Copy link
Copy Markdown
Member

Per-navigation web vitals are the default in v11 and never set browser.web_vital.{lcp,cls}.report_event, so only opt-out users still got it, so this PR cleans up those attributes.

Maybe a v12 thing given there is path for these to be reported.

LCP and CLS spans set browser.web_vital.{lcp,cls}.report_event to record
whether the SDK finalized the page load value on pagehide or at the first
navigation. Per-navigation web vitals are the default in v11 and never set
it, since web-vitals decides when a value is final on that path. It was
only still emitted with softNavigations and bfcacheNavigations turned off.

The logic that finalizes on pagehide or navigation stays, it is still what
the opt-out path uses. It just no longer reports which of the two fired.
@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.07 kB - -
@sentry/browser - with treeshaking flags 27.34 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.24 kB - -
@sentry/browser (incl. Tracing) 50.51 kB -0.12% -56 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 50.53 kB -0.11% -53 B 🔽
@sentry/browser (incl. Tracing, Profiling) 53.52 kB -0.12% -61 B 🔽
@sentry/browser (incl. Tracing, Replay) 90.06 kB -0.06% -53 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.15 kB -0.08% -56 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 94.76 kB -0.06% -53 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 107.73 kB -0.06% -54 B 🔽
@sentry/browser (incl. Feedback) 46.6 kB - -
@sentry/browser (incl. sendFeedback) 34.13 kB - -
@sentry/browser (incl. FeedbackAsync) 39.25 kB - -
@sentry/browser (incl. Metrics) 30.08 kB - -
@sentry/browser (incl. Logs) 30.34 kB - -
@sentry/browser (incl. Metrics & Logs) 31 kB - -
@sentry/react 30.82 kB - -
@sentry/react (incl. Tracing) 52.83 kB -0.11% -56 B 🔽
@sentry/vue 36.33 kB - -
@sentry/vue (incl. Tracing) 52.81 kB -0.12% -59 B 🔽
@sentry/svelte 29.1 kB - -
CDN Bundle 30.77 kB - -
CDN Bundle (incl. Tracing) 51.03 kB -0.12% -59 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.02 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.01 kB -0.12% -62 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 73.71 kB - -
CDN Bundle (incl. Tracing, Replay) 88.58 kB -0.06% -48 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 90.51 kB -0.06% -48 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 94.61 kB -0.06% -53 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 96.62 kB -0.09% -87 B 🔽
CDN Bundle - uncompressed 91.07 kB - -
CDN Bundle (incl. Tracing) - uncompressed 152.35 kB -0.12% -172 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.64 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 158.31 kB -0.11% -172 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.05 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 271.92 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 277.86 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 285.62 kB -0.07% -172 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 291.55 kB -0.06% -172 B 🔽
@sentry/nextjs (client) 55.16 kB -0.11% -57 B 🔽
@sentry/sveltekit (client) 50.95 kB -0.12% -58 B 🔽
@sentry/core/server 39.97 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 133.37 kB +0.02% +20 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.15 kB - -
@sentry/node - without tracing 89.92 kB +0.03% +21 B 🔺
@sentry/node - without channel injection 112.16 kB +0.02% +19 B 🔺
@sentry/aws-serverless 98.19 kB +0.02% +18 B 🔺
@sentry/cloudflare (withSentry) - minified 204.67 kB - -
@sentry/cloudflare (withSentry) 509.34 kB - -

View base workflow run

@logaretm
logaretm marked this pull request as ready for review September 21, 2026 18:40
@logaretm
logaretm requested a review from a team as a code owner September 21, 2026 18:40
@logaretm
logaretm requested review from Lms24 and msonnb and removed request for a team September 21, 2026 18:40
@logaretm
logaretm merged commit 5be77ff into develop Sep 21, 2026
325 of 326 checks passed
@logaretm
logaretm deleted the awad/remove-web-vital-report-event branch September 21, 2026 18:45
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.

2 participants