Commit 532ac86
ref(react-router): Decouple ServerBuild capture from the OTel patch (#22492)
Moves `registerServerBuildGlobal()` out of the OTel instrumentation
setup and registers the Vite-plugin ServerBuild capture independently in
the integration's `setupOnce()`. This keeps the capture path working
once the OTel instrumentation is removed in a follow-up.
No behavior change — both ServerBuild capture paths (OTel proxy and Vite
plugin) remain active.
Fixes #22411 <br>Ref
#22290
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f6f3330 commit 532ac86
2 files changed
Lines changed: 16 additions & 3 deletions
File tree
- packages/react-router
- src/server/integration
- test/server/integration
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
0 commit comments