Router Attributes

3 attributes in this category.3 stable

3 attributes

Stable Attributes

router.navigation.origin

stringScrub: AutoVisibility: PublicOTel: False

The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.

Changelog
next#600Added router.navigation.origin attribute, replacing navigation.origin
Raw JSON
{
  "key": "router.navigation.origin",
  "brief": "The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.",
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "/users/:id",
  "alias": [
    "navigation.origin",
    "sentry.sveltekit.navigation.from"
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        600
      ],
      "description": "Added router.navigation.origin attribute, replacing navigation.origin"
    }
  ]
}

router.navigation.route.id

stringScrub: AutoVisibility: PublicOTel: False

The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).

ExampleAboutView
Changelog
next#600Added router.navigation.route.id attribute, replacing navigation.route.id
Raw JSON
{
  "key": "router.navigation.route.id",
  "brief": "The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).",
  "type": "string",
  "apply_scrubbing": {
    "key": "auto"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "AboutView",
  "alias": [
    "navigation.route.id"
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        600
      ],
      "description": "Added router.navigation.route.id attribute, replacing navigation.route.id"
    }
  ]
}

router.navigation.type

stringScrub: ManualVisibility: PublicOTel: False

The type of navigation done by a client-side router.

Changelog
next#600Added router.navigation.type attribute, replacing navigation.type
Raw JSON
{
  "key": "router.navigation.type",
  "brief": "The type of navigation done by a client-side router.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "router.push",
  "alias": [
    "navigation.type",
    "sentry.sveltekit.navigation.type"
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        600
      ],
      "description": "Added router.navigation.type attribute, replacing navigation.type"
    }
  ]
}