Commit ef3af92
feat(react): Set url.template, url.path and url.full on routing spans
Adds url.template to React Router v3–v6 and v4/v5 instrumentation, fixes
TanStack React Router navigation url.path/url.full to use the target
location, and updates unit and e2e tests.
part of #21921
Co-Authored-By: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0d98fb5 commit ef3af92
26 files changed
Lines changed: 524 additions & 101 deletions
File tree
- dev-packages/e2e-tests/test-applications
- react-17/tests
- react-create-browser-router/tests
- react-create-hash-router/tests
- react-create-memory-router/tests
- react-router-5/tests
- react-router-6-descendant-routes/tests
- react-router-6-use-routes/tests
- react-router-6/tests
- react-router-7-cross-usage/tests
- react-router-7-spa-streaming/tests
- react-router-7-spa/tests
- react-router-8-cross-usage/tests
- react-router-8-spa/tests
- tanstack-router/tests
- packages/react
- src
- reactrouter-compat-utils
- vendor
- test
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
| |||
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
| |||
0 commit comments