Commit b395b6f
fix(server-runtime-injection): Patch
From Node 24.13 on, injection registers `Module.registerHooks` instead of
`Module.register`, and that branch had no `Module.prototype._compile` patch. A
runner that compiles CommonJS itself takes over `require`, so the files it pulls
in never reach the sync load hook. Under `tsx` the sync hook saw 2 of the 32
express files a plain `node` run delivers, and `express/lib/router/index.js` was
not among them, so no express span was recorded and `http.server` segments kept
the bare `GET` name.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>_compile on the sync hooks path1 parent 00507f8 commit b395b6f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
0 commit comments