Skip to content

feat(attributes): Use the web-vitals navigation types as-is for browser.navigation.type - #640

Open
logaretm wants to merge 3 commits into
mainfrom
awad/navigation-type-raw-values
Open

logaretm wants to merge 3 commits into
mainfrom
awad/navigation-type-raw-values

Conversation

@logaretm

@logaretm logaretm commented Sep 18, 2026

Copy link
Copy Markdown
Member

The attribute documented bfcache and folded a bfcache miss into navigate, which the SDK no longer does since it passes the web-vitals value through verbatim, fixed by listing the full web-vitals vocabulary and describing back-forward-cache, back-forward and restore as distinct values.

Not considered a breaking change because the attribute is typed as arbitrary string and browsers can easily add new types or drift the current values.

Also fixes the doc notes for the browser.navigation.id possible values.

…er.navigation.type

bfcache becomes back-forward-cache, and back-forward and restore are no
longer folded into navigate. The SDK now passes the web-vitals value
through verbatim, so the attribute vocabulary matches it.
@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Use the web-vitals navigation types as-is for browser.navigation.type by logaretm in #640
  • Add legacy gen_ai cache token attributes (deprecated) by JPeer264 in #582

Other

  • (op) Add ui.resolve span op by Lms24 in #633
  • (replays) Define replayId as a deprecated attribute by mjq in #401

Internal Changes 🔧

  • (deps) Bump smol-toml from 1.6.1 to 1.8.0 by dependabot in #635

🤖 This preview updates automatically when you update the PR.

@logaretm
logaretm requested a review from msonnb September 18, 2026 14:24
@logaretm
logaretm marked this pull request as ready for review September 18, 2026 14:24
@logaretm
logaretm requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners September 18, 2026 14:24
web-vitals reports a navigationId of 0 when the browser does not expose
PerformanceEntry.navigationId, so 0 means the id is unknown rather than
being a real navigation id.
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