Title: bun: `httpIntegration` incoming-request options have no effect with `@sentry/bun` · Issue #26609 · getsentry/sentry-javascript · GitHub
Open Graph Title: bun: `httpIntegration` incoming-request options have no effect with `@sentry/bun` · Issue #26609 · getsentry/sentry-javascript
X Title: bun: `httpIntegration` incoming-request options have no effect with `@sentry/bun` · Issue #26609 · getsentry/sentry-javascript
Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
Open Graph Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
X Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
Opengraph URL: https://github.com/getsentry/sentry-javascript
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bun: `httpIntegration` incoming-request options have no effect with `@sentry/bun`","articleBody":"With `@sentry/bun`, the incoming-request options of `httpIntegration` have no effect on a `node:http` server, for example Express. This includes `maxRequestBodySize: 'none'`, so the SDK still sends request bodies when the user turned body capture off.\n\n```js\nimport * as Sentry from '@sentry/bun';\n\nSentry.init({\n dsn: '...',\n tracesSampleRate: 1.0,\n integrations: [Sentry.httpIntegration({ maxRequestBodySize: 'none' })],\n});\n// An Express app on `node:http` still gets `http.request.body.data` on its `http.server` spans.\n```\n\n## Cause\n\nBun does not publish `http.server.request.start`, so `httpIntegration` creates no `http.server` spans on Bun. `bunHttpServerIntegration` creates them instead, and it reads its own `maxRequestBodySize` and `ignoreRequestBody` options. `@sentry/bun` re-exports `httpIntegration` from `@sentry/node`, so the options type-check but do nothing for incoming requests.\n\n## Expected\n\nThe incoming-request options that a user passes to `httpIntegration` apply on Bun too. One way: `bunHttpServerIntegration` reads the incoming-request options of the `Http` integration when the user sets them. Another: `@sentry/bun` warns when they are set on `httpIntegration`.\n\n## Reproduction\n\nThe Node suites `suites/express/with-http/maxIncomingRequestBodySize` and `suites/express/tracing/request-data` (the \"ignores request data\" case) fail under `@sentry/bun`, in the `node-suites-bun-run` project of `dev-packages/bun-integration-tests`. The suites in `HTTP_SERVER_OPTIONS_IGNORED` in `dev-packages/bun-integration-tests/node-suites/excludes.ts` fail for the same reason in the `node-suites-sentry-bun` project.\n","author":{"url":"https://github.com/isaacs","@type":"Person","name":"isaacs"},"datePublished":"2026-11-18T17:26:39Z","url":"https://github.com/getsentry/sentry-javascript/issues/26609"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:258c3bbf-6ee8-7eb9-ab3f-df448cf3994f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8442:25A901:64CB0C:887AED:6B0441AA |
| html-safe-nonce | 5b37f45dd97fd4edafd3ccf667631a42c42d3cb32d8de1dbc2109b2b7e895b10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDQyOjI1QTkwMTo2NENCMEM6ODg3QUVEOjZCMDQ0MUFBIiwidmlzaXRvcl9pZCI6Ijg4NTU0NDc4NDQyNDE1NTU4ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1f251bc016e4063b4f04ed6ba20b3c51b9e46350829de320834a6c18e0f5ac71 |
| hovercard-subject-tag | repository:3328572 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/issues/26609 |
| twitter:image | https://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b |
| og:image:alt | Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-cache |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width