Commit c098258
feat(vue): Set navigation.route.id from the Vue Router route name
Sets the navigation.route.id attribute (from @sentry/conventions) on
pageload and navigation spans, sourced from the Vue Router route name
(to.name). This is the framework-assigned route identifier, which Relay
prefers over url.template for span description inference.
The attribute is set independently of the routeLabel option: routeLabel
only controls the span name/source, whereas the route id identifies the
route regardless. This is most valuable when to.name drives the span
(source 'custom'), where url.template is not set today, so
navigation.route.id becomes the only structured route identifier.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6ff1b4d commit c098258
3 files changed
Lines changed: 16 additions & 2 deletions
File tree
- dev-packages/e2e-tests/test-applications/vue-3/tests
- packages/vue
- src
- test
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
468 | 472 | | |
469 | 473 | | |
0 commit comments