Sveltekit Attributes

4 attributes in this category.4 stable

4 attributes

Stable Attributes

sveltekit.load.environment

stringScrub: ManualVisibility: PublicOTel: False

The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`.

Examplesserverclient
Additional Context
  • Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.
Changelog
next#611Added sveltekit.load.environment attribute
Raw JSON
{
  "key": "sveltekit.load.environment",
  "brief": "The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "server",
    "client"
  ],
  "additional_context": [
    "Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry."
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        611
      ],
      "description": "Added sveltekit.load.environment attribute"
    }
  ]
}

sveltekit.load.node_id

stringScrub: ManualVisibility: PublicOTel: False

The path to the SvelteKit load function.

Examplessrc/routes/users/:id/+page.server.ts
Additional Context
  • Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.
Changelog
next#611Added sveltekit.load.node_id attribute
Raw JSON
{
  "key": "sveltekit.load.node_id",
  "brief": "The path to the SvelteKit load function.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "src/routes/users/:id/+page.server.ts"
  ],
  "alias": [
    "code.file.path",
    "code.filepath"
  ],
  "additional_context": [
    "Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry."
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        611
      ],
      "description": "Added sveltekit.load.node_id attribute"
    }
  ]
}

sveltekit.load.node_type

stringScrub: ManualVisibility: PublicOTel: False

The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions.

Examples+page.server+layout+layout.server
Additional Context
  • Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.
Changelog
next#611Added sveltekit.load.node_type attribute
Raw JSON
{
  "key": "sveltekit.load.node_type",
  "brief": "The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "+page.server",
    "+layout",
    "+layout.server"
  ],
  "additional_context": [
    "Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry."
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        611
      ],
      "description": "Added sveltekit.load.node_type attribute"
    }
  ]
}

sveltekit.tracing.original_name

stringScrub: ManualVisibility: PublicOTel: False

The original span name as emitted by SvelteKit.

Examplessveltekit.handle.root
Additional Context
  • The Sentry SDK renames SvelteKit-emitted spans to match Sentry's span name semantics, and preserves the name SvelteKit originally set in this attribute.
Changelog
next#611Added sveltekit.tracing.original_name attribute
Raw JSON
{
  "key": "sveltekit.tracing.original_name",
  "brief": "The original span name as emitted by SvelteKit.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "sveltekit.handle.root"
  ],
  "additional_context": [
    "The Sentry SDK renames SvelteKit-emitted spans to match Sentry's span name semantics, and preserves the name SvelteKit originally set in this attribute."
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        611
      ],
      "description": "Added sveltekit.tracing.original_name attribute"
    }
  ]
}