Skip to content

feat(browser): Report browser.navigation.type on the pageload span - #24509

Open
logaretm wants to merge 1 commit into
developfrom
awad/pageload-span-navigation-type
Open

logaretm wants to merge 1 commit into
developfrom
awad/pageload-span-navigation-type

Conversation

@logaretm

@logaretm logaretm commented Sep 18, 2026

Copy link
Copy Markdown
Member

TTFB, FP and FCP live on the pageload span as attributes and had no navigation type to be read against.

I added browser.navigation.type on that span so it also shows whether it was restored/back-forward-no-cache navigated as well or whether it was a pre-render.

Core web vitals were already emitted with the attributes, just not the entire web (non-core) web vitals that we already emit.

TTFB, FP and FCP are attributes of the pageload span rather than spans
of their own, so unlike LCP, CLS and INP they had no navigation type to
be read against. Report the type web-vitals measured TTFB and FCP on as
an attribute of the pageload span.
@logaretm

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 974b664. Configure here.

@logaretm
logaretm marked this pull request as ready for review September 18, 2026 15:18
@logaretm
logaretm requested a review from a team as a code owner September 18, 2026 15:18
@logaretm
logaretm requested review from msonnb and mydea and removed request for a team September 18, 2026 15:18
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.09 kB - -
@sentry/browser - with treeshaking flags 27.35 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.26 kB - -
@sentry/browser (incl. Tracing) 50.58 kB +0.04% +17 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 50.6 kB +0.05% +22 B 🔺
@sentry/browser (incl. Tracing, Profiling) 53.59 kB +0.06% +30 B 🔺
@sentry/browser (incl. Tracing, Replay) 90.14 kB +0.04% +28 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.23 kB +0.03% +23 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 94.84 kB +0.04% +33 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 107.81 kB +0.03% +30 B 🔺
@sentry/browser (incl. Feedback) 46.62 kB - -
@sentry/browser (incl. sendFeedback) 34.15 kB - -
@sentry/browser (incl. FeedbackAsync) 39.26 kB - -
@sentry/browser (incl. Metrics) 30.1 kB - -
@sentry/browser (incl. Logs) 30.35 kB - -
@sentry/browser (incl. Metrics & Logs) 31.02 kB - -
@sentry/react 30.84 kB - -
@sentry/react (incl. Tracing) 52.91 kB +0.07% +33 B 🔺
@sentry/vue 36.34 kB - -
@sentry/vue (incl. Tracing) 52.88 kB +0.05% +24 B 🔺
@sentry/svelte 29.11 kB - -
CDN Bundle 30.8 kB - -
CDN Bundle (incl. Tracing) 51.13 kB +0.05% +24 B 🔺
CDN Bundle (incl. Logs, Metrics) 33.06 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.11 kB +0.03% +15 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.75 kB - -
CDN Bundle (incl. Tracing, Replay) 88.67 kB +0.02% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 90.6 kB +0.02% +18 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 94.71 kB +0.02% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 96.75 kB +0.04% +34 B 🔺
CDN Bundle - uncompressed 91.16 kB - -
CDN Bundle (incl. Tracing) - uncompressed 152.61 kB +0.06% +79 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.73 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 158.57 kB +0.05% +79 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.14 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 272.18 kB +0.03% +79 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 278.12 kB +0.03% +79 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 285.88 kB +0.03% +79 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 291.81 kB +0.03% +79 B 🔺
@sentry/nextjs (client) 55.24 kB +0.06% +30 B 🔺
@sentry/sveltekit (client) 51.02 kB +0.06% +30 B 🔺
@sentry/core/server 39.98 kB - -
@sentry/core/browser 13.66 kB - -
@sentry/node 133.29 kB +0.02% +26 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.11 kB - -
@sentry/node - without tracing 89.88 kB +0.03% +21 B 🔺
@sentry/node - without channel injection 112.15 kB +0.02% +15 B 🔺
@sentry/aws-serverless 98.16 kB +0.03% +22 B 🔺
@sentry/cloudflare (withSentry) - minified 204.69 kB - -
@sentry/cloudflare (withSentry) 509.25 kB - -

View base workflow run

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.

1 participant