Skip to content

feat(attributes): Add navigation.origin attribute and deprecate SvelteKit routing attributes#467

Open
Lms24 wants to merge 1 commit into
mainfrom
lms/feat-attr-sveltekit-navigation-deprecation
Open

feat(attributes): Add navigation.origin attribute and deprecate SvelteKit routing attributes#467
Lms24 wants to merge 1 commit into
mainfrom
lms/feat-attr-sveltekit-navigation-deprecation

Conversation

@Lms24

@Lms24 Lms24 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Description

This PR adds a new, generic navigation.origin attribute (analogously to the already existing navigation.type attribute). The purpose is to record the origin route a client-side navigation was started on. This information is already collected by some of our routing instrumentation (like Sveltekit) but in a less than ideal way.

Therefore, this PR also deprecates a few Sveltekit-specific attributes:

  • sentry.sveltekit.navigation.type (to be replaced by navigation.type)
  • sentry.sveltekit.navigation.from (to be replaced by navigation.origin)
  • sentry.sveltekit.navigation.to (no replacement, as it's redundant with span name and url attributes)

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@github-actions

github-actions Bot commented Jul 8, 2026

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

  • Add navigation.origin attribute and deprecate SvelteKit routing attributes by Lms24 in #467
  • Add url.same_origin (deprecated) and http.request.same_origin (replacement) attributes by Lms24 in #456
  • Add db.response.status_code by s1gr1d in #462

Other

  • (ai) Add granular cost attributes for cache and reasoning by vgrozdanic in #461

Internal Changes 🔧

  • (ci) Stop inheriting secrets for changelog-preview by tobias-wilfert in #463

🤖 This preview updates automatically when you update the PR.

@Lms24 Lms24 marked this pull request as ready for review July 8, 2026 08:05
@Lms24 Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners July 8, 2026 08:05
@Lms24 Lms24 changed the title feat(attributes): Add navigation.origin attribute and deprecate sveltekit-specific routing attributes feat(attributes): Add navigation.origin attribute and deprecate sveltekitrouting attributes Jul 8, 2026
@Lms24 Lms24 changed the title feat(attributes): Add navigation.origin attribute and deprecate sveltekitrouting attributes feat(attributes): Add navigation.origin attribute and deprecate sveltekit routing attributes Jul 8, 2026
@Lms24 Lms24 changed the title feat(attributes): Add navigation.origin attribute and deprecate sveltekit routing attributes feat(attributes): Add navigation.origin attribute and deprecate SvelteKit routing attributes Jul 8, 2026
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