Repository navigation
feat(attributes): Add sveltekit.* attributes emitted by SvelteKit's native spans - #611
Merged
Merged
Conversation
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]>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Names
Internal Changes 🔧Deps
Other
🤖 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]>
sveltekit.tracing.original_namesveltekit.* attributes
Lms24
marked this pull request as ready for review
September 2, 2026 17:45
Lms24
requested review from
a team,
cleptric,
mjq and
nsdeschenes
as code owners
September 2, 2026 17:45
sveltekit.* attributessveltekit.* attributes emitted by SvelteKit's native spans
nsdeschenes
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds four previously undocumented SvelteKit attributes:
sveltekit.tracing.original_nameholds 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_idandsveltekit.load.node_typedescribe the runtime, path and kind of theloadfunction a span covers. SvelteKit sets those three itself and the SDK only forwards them.sveltekit.load.node_idjoins thecode.file.pathalias group without being deprecated, socode.file.pathandcode.filepathpick 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.