feat(vue, nuxt): Set url.template and URL attributes on router spans#22063
Merged
Conversation
05dc30a to
f1c9b06
Compare
8dcf8d2 to
4b0a201
Compare
Lms24
commented
Jul 8, 2026
Comment on lines
+204
to
+205
| paramAttributes[URL_PATH_PARAMETER_KEY.replace('<key>', key)] = value; | ||
| paramAttributes[PARAMS_KEY.replace('<key>', key)] = value; // params.[key] is an alias |
Member
Author
There was a problem hiding this comment.
This is technically extra credit but I figued I'd give it a shot in this PR. Not fully happy with how we build the key here but for now this is how conventions emit dynamic attribute keys. The advantage we still get over hard-coded keys is that we'd get a deprecation warning if one of the params becomes deprecated (which, given they're aliases of each other, is quite likely IMHO).
Contributor
size-limit report 📦
|
f1c9b06 to
74f040c
Compare
4b0a201 to
0efa7ff
Compare
0efa7ff to
b3142f9
Compare
71d705f to
0d98fb5
Compare
b3142f9 to
26631c4
Compare
26631c4 to
a4979c5
Compare
0d98fb5 to
4d6b4b9
Compare
a4979c5 to
26631c4
Compare
4d6b4b9 to
0d98fb5
Compare
26631c4 to
a4979c5
Compare
0d98fb5 to
4d6b4b9
Compare
a4979c5 to
26631c4
Compare
4d6b4b9 to
0d98fb5
Compare
26631c4 to
5b4c45f
Compare
0d98fb5 to
4b134c2
Compare
5b4c45f to
735d7ef
Compare
4b134c2 to
25c6e76
Compare
25c6e76 to
6165ba8
Compare
735d7ef to
59ab726
Compare
s1gr1d
approved these changes
Jul 8, 2026
59ab726 to
7668b4b
Compare
6165ba8 to
08f5a34
Compare
f252957 to
a9d7489
Compare
7668b4b to
1966f19
Compare
a9d7489 to
8c51b64
Compare
Adds url.template to Vue Router and TanStack Vue Router pageload and navigation spans, passes destination URLs when starting navigation spans, and adds e2e test coverage for url.full, url.path, and url.template. part of #21921 Co-Authored-By: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
8c51b64 to
f63fcec
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f63fcec. Configure here.
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
url.template,url.path, andurl.fullto Vue Router and TanStack Vue Router pageload and navigation spans. Navigation spans now pass the destination URL when started sourl.pathandurl.fullreflect the target route rather than the previous page. Redirect resolution in TanStack Router also updates URL attributes on pageload and navigation spans.Since Nuxt reuses Vue router, this also adds the attributes to spans from the Nuxt SDK. This PR also adds e2e tests covering the changes on Nuxt.
Part of #21921