You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 08b0433
Browse filesBrowse the repository at this point in the historyBrowse files
fix(bun): Apply httpIntegration incoming-request options to node:http servers (#26611)
## What
On Bun, the incoming-request options passed to `httpIntegration` (such
as `maxRequestBodySize: 'none'`, `ignoreIncomingRequests`,
`onSpanCreated`, `sessions`) now apply to `node:http` servers. Options
set on `bunHttpServerIntegration` still win.
## Why
Bun does not publish `http.server.request.start`, so
`bunHttpServerIntegration` creates the `http.server` spans, and it read
only its own options. The `httpIntegration` options type-checked but did
nothing, so request bodies were still sent after a user turned them off.
`bun test` now runs with `--isolate`, because the `http.Server` patch
happens once per process and the first test file's `init()` fixed the
options for all files. That exposed a `perf_hooks` mock in
`bunRuntimeMetrics.test.ts` that failed when the file ran alone.
Closes: #26609
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments