Title: Next.js v11 build-time instrumentation: Turbopack build timeout and opt-out trace coverage · Issue #24764 · getsentry/sentry-javascript · GitHub
Open Graph Title: Next.js v11 build-time instrumentation: Turbopack build timeout and opt-out trace coverage · Issue #24764 · getsentry/sentry-javascript
X Title: Next.js v11 build-time instrumentation: Turbopack build timeout and opt-out trace coverage · Issue #24764 · getsentry/sentry-javascript
Description: Environment @sentry/nextjs 11.0.0 Next.js 16.3.6, Turbopack production build pnpm workspace monorepo Vercel build machine: 4 cores, 8 GB Observed regression Our first production Git deployment upgrading from Sentry 10 to 11 stopped at Cr...
Open Graph Description: Environment @sentry/nextjs 11.0.0 Next.js 16.3.6, Turbopack production build pnpm workspace monorepo Vercel build machine: 4 cores, 8 GB Observed regression Our first production Git deployment upgr...
X Description: Environment @sentry/nextjs 11.0.0 Next.js 16.3.6, Turbopack production build pnpm workspace monorepo Vercel build machine: 4 cores, 8 GB Observed regression Our first production Git deployment upgr...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/24764
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Next.js v11 build-time instrumentation: Turbopack build timeout and opt-out trace coverage","articleBody":"### Environment\n- @sentry/nextjs 11.0.0\n- Next.js 16.3.6, Turbopack production build\n- pnpm workspace monorepo\n- Vercel build machine: 4 cores, 8 GB\n\n### Observed regression\nOur first production Git deployment upgrading from Sentry 10 to 11 stopped at `Creating an optimized production build` and was terminated with `BUILD_EXCEEDED_MAXIMUM_TIME` (45 minutes). The preceding build, also without cache, compiled in 2.2 minutes. There is no explicit Vercel OOM error.\n\n### Isolation and mitigation\nA clean local build with 4-CPU affinity, an 8-GB memory cgroup, no swap, and production environment completed with only `buildTimeInstrumentation: false` changed (98-second compilation).\n\nWe inspected `maybeAddOrchestrionRule` in `constructTurbopackConfig`: the `*.{js,mjs,cjs}` rule has condition `node`. An experimental local patch added a `node_modules` path condition derived from `getSentryInstrumentations()` module names. A subsequent clean source build on Vercel compiled in 107 seconds and completed in 4m15s; AI SDK/OpenAI/Anthropic registration calls were present in generated output. This suggests the broad loader rule may contribute, but we have not profiled the precise bottleneck or produced a public minimal reproduction.\n\nWe are removing that custom patch and using the supported `buildTimeInstrumentation: false` option while investigating.\n\n### Questions\n1. Is excessive Turbopack loader work with the default Orchestrion rule a known v11 issue? Is package-level filtering supported or planned?\n2. Which automatic server traces are lost with `buildTimeInstrumentation: false` on Vercel, particularly bundled AI SDK 7, OpenAI and Anthropic SDKs, and database clients? Which still work through runtime channels or Next.js instrumentation?\n3. Is there a supported selective option to preserve these integrations without passing every server JavaScript module through the loader?\n4. What profiling output or minimal reproduction would be most useful?\n\nError reporting, source map upload and explicit application spans remain configured. We are not claiming this mitigation preserves all automatic trace coverage.\n","author":{"url":"https://github.com/ricardostmalo","@type":"Person","name":"ricardostmalo"},"datePublished":"2026-09-25T20:57:16Z","url":"https://github.com/getsentry/sentry-javascript/issues/24764"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:225badfb-74b8-2b3a-ddb7-8040c796e712 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E06A:2953C9:1065259:16EB837:6B044C24 |
| html-safe-nonce | f26550218112f50a57b3f7bf6a36c28e57f9a5565f7a52a7c4bea92138c0cb12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDZBOjI5NTNDOToxMDY1MjU5OjE2RUI4Mzc6NkIwNDRDMjQiLCJ2aXNpdG9yX2lkIjoiNTEyNDMyODU0NDk2NDcyNTc5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e56475c33472fa939b2d48c2f97a72713eeb4e494221e8689b4ea698fc30701c |
| hovercard-subject-tag | issue:5588431057 |
| 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/_view_fragments/issues/show/getsentry/sentry-javascript/24764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17fb6f049d44110a5b99082f61704f91d0ef4f7a3f7dc4d783d30967dc5b5ed3/getsentry/sentry-javascript/issues/24764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17fb6f049d44110a5b99082f61704f91d0ef4f7a3f7dc4d783d30967dc5b5ed3/getsentry/sentry-javascript/issues/24764 |
| og:image:alt | Environment @sentry/nextjs 11.0.0 Next.js 16.3.6, Turbopack production build pnpm workspace monorepo Vercel build machine: 4 cores, 8 GB Observed regression Our first production Git deployment upgr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ricardostmalo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| 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 | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| 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