Skip to content

feat(attributes): Add sveltekit.* attributes emitted by SvelteKit's native spans - #611

Merged
Lms24 merged 4 commits into
mainfrom
feat/sveltekit-tracing-original-name
Sep 3, 2026
Merged

Lms24 merged 4 commits into
mainfrom
feat/sveltekit-tracing-original-name

Conversation

@Lms24

@Lms24 Lms24 commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Adds four previously undocumented SvelteKit attributes:

  • sveltekit.tracing.original_name holds the span name as SvelteKit emitted it, before the Sentry SDK renames the span to match Sentry's span name semantics,
  • sveltekit.load.environment, sveltekit.load.node_id and sveltekit.load.node_type describe the runtime, path and kind of the load function a span covers. SvelteKit sets those three itself and the SDK only forwards them.

sveltekit.load.node_id joins the code.file.path alias group without being deprecated, so code.file.path and code.filepath pick it up as an alias to keep the group symmetric.

For now, I decided against deprecating them, since these attributes are set by the sveltekit framework and not by use. We just forward them.

Add an attribute holding the span name as SvelteKit originally emitted it. The
Sentry SDK renames these spans to match Sentry's span name semantics, which
loses the framework's own name; keeping it lets users correlate spans back to
the SvelteKit hooks that produced them.

Co-Authored-By: Claude <[email protected]>
@github-actions

github-actions Bot commented Sep 2, 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 sveltekit.* attributes emitted by SvelteKit's native spans by Lms24 in #611
  • Add browser.navigation.type, move navigation.* to router.navigation.* by logaretm in #600
  • Add langchain.chain.name (deprecated) in favor of gen_ai.pipeline.name by RulaKhaled in #599
  • Add browser.paint.type by Lms24 in #606

Names

  • Add browser.* span name and description rules by Lms24 in #607
  • Add cache span name rules by Lms24 in #605

Internal Changes 🔧

Deps

  • Bump browserslist from 4.28.2 to 4.28.8 by dependabot in #614
  • Bump fast-uri from 3.1.5 to 3.1.7 by dependabot in #612

Other

  • (descriptions) Fix http.client span description example by Lms24 in #603

🤖 This preview updates automatically when you update the PR.

Add `sveltekit.load.environment`, `sveltekit.load.node_id` and
`sveltekit.load.node_type`, describing the runtime, path and kind of the
SvelteKit load function a span covers. SvelteKit sets these itself; the Sentry
SDK only forwards them.

`sveltekit.load.node_id` joins the `code.file.path` alias group without being
deprecated, so `code.filepath` and `code.file.path` gain it as an alias to keep
the group symmetric.

Co-Authored-By: Claude <[email protected]>
@Lms24 Lms24 changed the title feat(attributes): Add sveltekit.tracing.original_name feat(attributes): Add sveltekit.* attributes Sep 2, 2026
@Lms24
Lms24 marked this pull request as ready for review September 2, 2026 17:45
@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners September 2, 2026 17:45
@Lms24 Lms24 self-assigned this Sep 2, 2026
@Lms24 Lms24 changed the title feat(attributes): Add sveltekit.* attributes feat(attributes): Add sveltekit.* attributes emitted by SvelteKit's native spans Sep 2, 2026
@Lms24
Lms24 enabled auto-merge (squash) September 3, 2026 08:06
@Lms24
Lms24 merged commit 880abdd into main Sep 3, 2026
17 checks passed
@Lms24
Lms24 deleted the feat/sveltekit-tracing-original-name branch September 3, 2026 08:09
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