feat(browser): Set url.path and url.full on pageload and navigation spans#21952
feat(browser): Set url.path and url.full on pageload and navigation spans#21952Lms24 wants to merge 6 commits into
Conversation
size-limit report 📦
|
088a93e to
7c4bfcb
Compare
Yes, we can now use conventions instead of hard-coded strings or the exports from |
d20b04f to
c20fc4a
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 c20fc4a. Configure here.
| [SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: 1, | ||
| [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'custom', | ||
| [URL_FULL]: 'https://example.com/', | ||
| [URL_PATH]: '/', |
There was a problem hiding this comment.
Hook test missing url option
Low Severity
startBrowserTracingNavigationSpan now emits beforeStartNavigationSpan with { isRedirect, url }, but the listener test still expects only { isRedirect: undefined }. The assertion no longer matches the hook payload and the test should fail until it includes the url field.
Reviewed by Cursor Bugbot for commit c20fc4a. Configure here.
c20fc4a to
41cc9bd
Compare
41cc9bd to
3831498
Compare
…pans Set the `url.path` (raw, unparameterized pathname without query, fragment or domain) and `url.full` (the entire URL) attributes on pageload and navigation root spans. This is done centrally in `_createRouteSpan`, which every pageload and navigation span funnels through, so all downstream framework SDKs inherit these attributes without additional wiring. Co-Authored-By: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
3831498 to
2ad4840
Compare


Adds high-cardinality
url.pathandurl.fullattributes to pageload and navigation spans. We need them for span description inference in Relay: https://getsentry.github.io/sentry-conventions/descriptions/#browser-pageloadMore specific router instrumentations who can set a parameterized route will also set
url.templatewhich is the preferred attribute.ref #21921