René's URL Explorer Experiment


Title: [nextjs] Isolation scope is not forked for proxy requests under the new `Next.request` root span (Next.js 16.4.3+) · Issue #26005 · getsentry/sentry-javascript · GitHub

Open Graph Title: [nextjs] Isolation scope is not forked for proxy requests under the new `Next.request` root span (Next.js 16.4.3+) · Issue #26005 · getsentry/sentry-javascript

X Title: [nextjs] Isolation scope is not forked for proxy requests under the new `Next.request` root span (Next.js 16.4.3+) · Issue #26005 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues I have reviewed the documentation I am using the latest SDK release — we run 10.78.0 in production; the same check exists in 11.10.0 (latest) and on develop (we comp...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues I have reviewed the documentation I am using the latest SDK release — we run 10.78.0 in production; the same check exists in ...

X Description: Is there an existing issue for this? I have checked for existing issues I have reviewed the documentation I am using the latest SDK release — we run 10.78.0 in production; the same check exists in ...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26005

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[nextjs] Isolation scope is not forked for proxy requests under the new `Next.request` root span (Next.js 16.4.3+)","articleBody":"### Is there an existing issue for this?\n- [x] I have checked for existing issues\n- [x] I have reviewed the documentation\n- [ ] I am using the latest SDK release — we run 10.78.0 in production; the same check exists in 11.10.0 (latest) and on `develop` (we compared the code)\n\n### How do you use Sentry?\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n@sentry/nextjs\n\n### SDK Version\n10.78.0 (the relevant code is the same in 11.10.0 and on `develop`)\n\n### Framework Version\nNext.js 16.4.3\n\n### Link to Sentry event\nNot public.\n\n### Reproduction Example/SDK Setup\nApp Router with `proxy.ts`, default Turbopack build (so the proxy is not auto-wrapped with `wrapMiddlewareWithSentry`), deployed on Vercel where the proxy is invoked separately from the render. `tracesSampleRate: 0.1`, `tunnelRoute` set.\n\n### Steps to Reproduce\n1. Send a request without a `traceparent` header to a route that runs the proxy.\n2. Since vercel/next.js#100294 (shipped in 16.4.3), the proxy adapter starts a root span with `next.span_type = \"Next.request\"` (named after the method, e.g. `GET`), and `Middleware.execute` becomes its child.\n3. `maybeForkIsolationScopeForRootSpan` (`handleOnSpanStart` in 10.x) only forks the isolation scope when the root span type is `BaseServer.handleRequest` or `Middleware.execute`, so for this root it returns early.\n4. Record breadcrumbs inside the proxy (fetch, console) for two concurrent requests handled by the same instance, and capture an error in one of them.\n\n### Expected Result\nEach proxy request gets its own isolation scope, as it did when `Middleware.execute` was the root, so breadcrumbs do not mix between requests.\n\n### Actual Result\nProxy invocations share one isolation scope (we confirmed the shared scope with the real SDK in a local reproduction), so breadcrumbs recorded in the proxy can be attached to events of other concurrent requests.\n\n### Additional Context\n- Side effects we also see in production: the proxy transaction is now named `GET middleware GET` with op `http.server` (previously `middleware GET` / `http.server.middleware`), and `tunnelRoute` POSTs are no longer dropped by the middleware filter (they are sent as transactions, subject to the sample rate). The second part should go away once vercel/next.js#100665 lands, but requests that continue to a render keep the `Next.request` root, so the isolation scope issue remains.\n- With `next build --webpack` the proxy is auto-wrapped with `wrapMiddlewareWithSentry` (which uses `withIsolationScope`), so the impact is small there.\n- Related: #25370 (closed on 2026-10-27 as fixed by Next.js 16.4.3), vercel/next.js#100294, vercel/next.js#100665.\n- We have not published a minimal repro repository yet, but can provide one. We are also happy to open a PR with a fix and tests if you agree with the direction.\n","author":{"url":"https://github.com/tsuyoring","@type":"Person","name":"tsuyoring"},"datePublished":"2026-11-03T03:38:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/26005"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:022cec88-b160-ddbb-a238-d8811a6657b6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8880:2F022B:844E8:B6696:6B0431F8
html-safe-nonce84368c9648845d751b68237479e734516114622acc1db2c5802ff67a0406b00f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODgwOjJGMDIyQjo4NDRFODpCNjY5Njo2QjA0MzFGOCIsInZpc2l0b3JfaWQiOiI4NDI3MzY1MTE1NjM4NzA3MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac137edd93a4def4518b3a60f643009c6835e8d95e9712d0e7c8b88f26738e3112
hovercard-subject-tagissue:6175807887
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/26005/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fa65661a14364b82be66acfd8766d84002a11024a05b845fae76906be6fa5086/getsentry/sentry-javascript/issues/26005
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fa65661a14364b82be66acfd8766d84002a11024a05b845fae76906be6fa5086/getsentry/sentry-javascript/issues/26005
og:image:altIs there an existing issue for this? I have checked for existing issues I have reviewed the documentation I am using the latest SDK release — we run 10.78.0 in production; the same check exists in ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametsuyoring
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/26005#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F26005
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F26005
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26005
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26005
Reloadhttps://github.com/getsentry/sentry-javascript/issues/26005
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26005
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26005
#26084https://github.com/getsentry/sentry-javascript/pull/26084
[nextjs] Isolation scope is not forked for proxy requests under the new Next.request root span (Next.js 16.4.3+)https://github.com/getsentry/sentry-javascript/issues/26005#top
#26084https://github.com/getsentry/sentry-javascript/pull/26084
https://github.com/chargome
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Next.jshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Next.js%22
https://github.com/tsuyoring
tsuyoringhttps://github.com/tsuyoring
on Nov 3, 2026https://github.com/getsentry/sentry-javascript/issues/26005#issue-6175807887
Keep middleware and render in one OpenTelemetry trace as siblings vercel/next.js#100294https://github.com/vercel/next.js/pull/100294
Only emit Next.request for requests that reach a render, and make middleware the root otherwise vercel/next.js#100665https://github.com/vercel/next.js/pull/100665
nextjs: Next 16 request yields a route-less http.server segment named only by method, plus the route-named one #25370https://github.com/getsentry/sentry-javascript/issues/25370
Keep middleware and render in one OpenTelemetry trace as siblings vercel/next.js#100294https://github.com/vercel/next.js/pull/100294
Only emit Next.request for requests that reach a render, and make middleware the root otherwise vercel/next.js#100665https://github.com/vercel/next.js/pull/100665
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 3, 2026https://github.com/getsentry/sentry-javascript/issues/26005#issuecomment-6594830986
Linear Codehttps://linear.app
JS-4057https://linear.app/getsentry/issue/JS-4057
linear-codehttps://github.com/apps/linear-code
Next.jshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Next.js%22
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Nov 3, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-34981163953
sentry-juniorhttps://github.com/apps/sentry-junior
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 4, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35106141202
chargomehttps://github.com/chargome
on Nov 4, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35106452816
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 4, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35106553164
chargomehttps://github.com/chargome
on Nov 4, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35115945445
test(nextjs): Add e2e test for proxy isolation under Next.request roo…https://github.com/getsentry/sentry-javascript/commit/c3713aabd2aee2f07b8ba933dae9d1db6eeaba16
c3713aahttps://github.com/getsentry/sentry-javascript/commit/c3713aabd2aee2f07b8ba933dae9d1db6eeaba16
chargomehttps://github.com/chargome
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
7ae2cc3https://github.com/getsentry/sentry-javascript/commit/7ae2cc34920b9bf4ddbdb000361d7305d12bc21d
on Nov 4, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35122513024
sentry-juniorhttps://github.com/apps/sentry-junior
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 5, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35225429326
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 5, 2026https://github.com/getsentry/sentry-javascript/issues/26005#issuecomment-6658246105
GitHub Actionshttps://help.github.com/en/actions
#26084https://github.com/getsentry/sentry-javascript/pull/26084
11.11.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.11.0
andreiborzahttps://github.com/andreiborza
on Nov 6, 2026https://github.com/getsentry/sentry-javascript/issues/26005#event-35338740029
fix(nextjs): Fork isolation scope for Next.request proxy root spans (g…https://github.com/rjmcgee53192/sentry-javascript/commit/7ae2cc34920b9bf4ddbdb000361d7305d12bc21d
g…https://github.com/getsentry/sentry-javascript/pull/26084
https://docs.github.com/articles/closing-issues-via-commit-messages
7ae2cc3https://github.com/rjmcgee53192/sentry-javascript/commit/7ae2cc34920b9bf4ddbdb000361d7305d12bc21d
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/26005
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/26005
chargomehttps://github.com/chargome
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
Next.jshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Next.js%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.