Skip to content

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

Merged
Lms24 merged 2 commits into
mainfrom
lms/feat-attr-sveltekit-navigation-deprecation
Jul 13, 2026
Merged

feat(attributes): Add navigation.origin attribute and deprecate SvelteKit routing attributes#467
Lms24 merged 2 commits 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 AWS service instrumentation attributes by andreiborza in #480
  • Add messaging, rpc and gen_ai attributes by andreiborza in #482
  • Add faas.invoked_* attributes by andreiborza in #481
  • Add AWS DynamoDB instrumentation attributes by andreiborza in #479
  • Add sentry.metric.source by klochek in #476
  • Add faas.id (deprecated) in favor of cloud.resource_id by andreiborza in #475
  • Add faas.execution (deprecated) in favor of faas.invocation_id by andreiborza in #473
  • Add messaging attributes by s1gr1d in #469
  • 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
  • (js) Add _BASE attribute key exports for dynamic attribute keys by Lms24 in #471

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
@Lms24
Lms24 enabled auto-merge (squash) July 13, 2026 08:14
@Lms24 Lms24 self-assigned this Jul 13, 2026
@Lms24
Lms24 merged commit ecb1fee into main Jul 13, 2026
17 checks passed
@Lms24
Lms24 deleted the lms/feat-attr-sveltekit-navigation-deprecation branch July 13, 2026 08:16
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