feat: Set url.template on pageload and navigation spans across framework SDKs#21953
feat: Set url.template on pageload and navigation spans across framework SDKs#21953Lms24 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 02659b6. Configure here.
| if (span && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') { | ||
| span.updateName(route); | ||
| span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route'); | ||
| span.setAttribute('url.template', route); |
There was a problem hiding this comment.
Missing tests for url.template
Medium Severity
This feat PR adds url.template on pageload and navigation spans across many framework SDKs, but the diff includes no unit, integration, or E2E tests asserting that attribute on sent spans. Per PR review guidelines for feat changes, at least one such test is expected.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 02659b6. Configure here.
| activeRootSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, source); | ||
| if (source === 'route') { | ||
| activeRootSpan.setAttribute('url.template', name); | ||
| } |
There was a problem hiding this comment.
Stale url template on downgrade
Medium Severity
When a pageload or navigation span’s sentry.source is later set to url, the new code often stops writing url.template but never removes an earlier value. The span can then show url source while still carrying a previous route template, which mislabels transactions in Sentry.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 02659b6. Configure here.
size-limit report 📦
|
chargome
left a comment
There was a problem hiding this comment.
LGTM, but should we assert in tests?
yup absolutely, sorry for pinging you before this was ready. Clanker opened without draft. |
5500d3b to
945194a
Compare
9152b09 to
a5997a6
Compare
088a93e to
7c4bfcb
Compare
b40658d to
7ea373e
Compare
d20b04f to
c20fc4a
Compare
7ea373e to
882142c
Compare
c20fc4a to
41cc9bd
Compare
14cbb12 to
cae6c25
Compare
ed08f20 to
d792a0e
Compare
26d8b46 to
d7ce684
Compare
d792a0e to
66cf987
Compare
d7ce684 to
76f14ee
Compare
4cb8c33 to
975286b
Compare
da06b4f to
f26d09c
Compare
d7cc00e to
c6c9931
Compare
f26d09c to
eb2f55b
Compare
c1471bb to
3282635
Compare
58bf332 to
30325b3
Compare
3282635 to
67c27a5
Compare
ac4177b to
b7ae3a2
Compare
0be838c to
8dcf8d2
Compare
624d1b6 to
fb389c1
Compare
8dcf8d2 to
4b0a201
Compare
fb389c1 to
3f204c3
Compare
3f204c3 to
d5da1ca
Compare
41fa12e to
e595d12
Compare
d5da1ca to
9aa65f1
Compare
…pans Adds url.template, url.path, and url.full to pageload and navigation spans for Solid Router and TanStack Solid Router, including redirect and back-button navigation cases. Updates solidstart and solid-tanstack-router e2e tests. part of #21921 Co-Authored-By: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
…ltekit) Refactors Angular routing to use the shared getAbsoluteUrl helper and adds navigation.type to SvelteKit navigation spans. part of #21921 Co-Authored-By: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
9aa65f1 to
aca4884
Compare
|
Restructuring stack: splitting solid changes into #22090. Reopening with updated base. |


Applies
url.templateto pageload and navigation root spans for Angular and Solid router integrations, refactors Angular routing to use the sharedgetAbsoluteUrlhelper introduced in #22006, and adds thenavigation.typeattribute to SvelteKit navigation spans.part of #21921