René's URL Explorer Experiment


Title: Client decision rule for trace meta tags under cacheComponents · Issue #24944 · getsentry/sentry-javascript · GitHub

Open Graph Title: Client decision rule for trace meta tags under cacheComponents · Issue #24944 · getsentry/sentry-javascript

X Title: Client decision rule for trace meta tags under cacheComponents · Issue #24944 · getsentry/sentry-javascript

Description: The server tells the browser which trace it belongs to through a tag. Under cacheComponents the shell of a document is prerendered and cached, so a tag baked into it would be replayed to every later visitor. Un...

Open Graph Description: The server tells the browser which trace it belongs to through a tag. Under cacheComponents the shell of a document is prerendered and cached, so a tag baked into it woul...

X Description: The server tells the browser which trace it belongs to through a <meta name="sentry-trace"> tag. Under cacheComponents the shell of a document is prerendered and cached, so a tag ba...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client decision rule for trace meta tags under cacheComponents","articleBody":"The server tells the browser which trace it belongs to through a `\u003cmeta name=\"sentry-trace\">` tag. Under `cacheComponents` the shell of a document is prerendered and cached, so a tag baked into it would be replayed to every later visitor. Until now the SDK avoided that by not emitting tags at all, so pageloads and server requests were never connected.\n\n**Changes**\n\n* Server: a Next.js-aware propagator (`NextSentryPropagator`) hands out no `sentry-trace`/`baggage` while a `prerender route (app)` span is active. A prerendered shell, at build time or at request time, never carries a trace. Next.js computes the tags inside that span for prerenders and outside of it for request renders, including the resume of a shell. Verified for Next.js 15.0 through 16.3.\n* Config: `experimental.clientTraceMetadata` is enabled again under `cacheComponents`.\n* Client: any tag in the document is continued, the last one wins. Blocking pages (`export const instant = false`) and dev mode join the server trace right away, no special case.\n* Client: when no tag and no `Server-Timing` trace are present and the document is still streaming, the pageload span waits for the resumed part, bounded by `DOMContentLoaded` and a 10 s cap, then continues the server trace. Start timestamp stays at the time origin, children come from the performance timeline, so the span looks the same as before.\n* Client: a navigation during that wait starts the pageload with a fresh trace before the navigation span is created, so it becomes the pageload's redirect child instead of the only record of the visit.\n* Removed: the `generateStaticParams` based meta tag removal (`removeIsrSsgTraceMetaTags`) and the `isrRoutes` manifest field. ISR shells are prerenders, so the server guard covers them, including `revalidate` routes without `generateStaticParams`.\n\n**Not done, deliberately**\n\n* No `cache_origin` links from meta tags. Shells are trace-free, so a visitor of a cached shell starts a fresh trace with nothing to link. The `use cache` instrumentation keeps its own `cache_origin` links.\n* Fetches and errors between SDK start and the arrival of the resumed part are not attached to the pageload. That window is the dynamic hole's render time, longer on Vercel where the CDN serves the shell before the function starts. The Server-Timing sub-issues close it.\n\n**Verified**\n\n* Unit tests in `packages/nextjs`.\n* E2E in both cacheComponents apps, production and development: `/pageload-tracing` joined, `/blocking` joined, two visitors of a shell generated at request time never share a trace and carry no links, fully static page starts fresh.\n* E2E `nextjs-16` including the ISR pages, which now rely on the server guard.\n* Real telemetry from a demo app: every `/pageload-tracing` and `/blocking` pageload shares a trace with its server request, no trace holds two pageloads.","author":{"url":"https://github.com/chargome","@type":"Person","name":"chargome"},"datePublished":"2026-10-01T13:29:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/24944"}

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:d614d8fd-ebf2-2846-37ac-d743f949d5fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC020:2FFC62:4D12F9:6B7037:6B0414A8
html-safe-nonceb438dbe0f73f32099c540cb6ab5a474ed1e754715854ac5ffd25c4ce1bbbaab7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDIwOjJGRkM2Mjo0RDEyRjk6NkI3MDM3OjZCMDQxNEE4IiwidmlzaXRvcl9pZCI6IjU4MDY3Njk4NjU4NTk3OTgxODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac014d774a73c44014456e904f0f358eb8892c75fe254a9cb1a07c3b6f784cd228
hovercard-subject-tagissue:5662948366
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/24944/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7d0df1ab27d335680633e9910662d358061fc4ba81904f461b8787657dad9081/getsentry/sentry-javascript/issues/24944
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7d0df1ab27d335680633e9910662d358061fc4ba81904f461b8787657dad9081/getsentry/sentry-javascript/issues/24944
og:image:altThe server tells the browser which trace it belongs to through a tag. Under cacheComponents the shell of a document is prerendered and cached, so a tag baked into it woul...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechargome
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/24944#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F24944
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%2F24944
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/24944
Reloadhttps://github.com/getsentry/sentry-javascript/issues/24944
Reloadhttps://github.com/getsentry/sentry-javascript/issues/24944
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues342 (342)https://github.com/getsentry/sentry-javascript/issues
Pull requests56 (56)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/24944
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/24944
#25142https://github.com/getsentry/sentry-javascript/pull/25142
Client decision rule for trace meta tags under cacheComponentshttps://github.com/getsentry/sentry-javascript/issues/24944#top
#25142https://github.com/getsentry/sentry-javascript/pull/25142
https://github.com/chargome
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com/chargome
chargomehttps://github.com/chargome
on Oct 1, 2026https://github.com/getsentry/sentry-javascript/issues/24944#issue-5662948366
chargomehttps://github.com/chargome
on Oct 1, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-32255202635
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 1, 2026https://github.com/getsentry/sentry-javascript/issues/24944#issuecomment-5932461919
Linear Codehttps://linear.app
JS-3863https://linear.app/getsentry/issue/JS-3863
chargomehttps://github.com/chargome
on Oct 1, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-32255205463
Reconnect pageload and serving request under cacheComponents #24298https://github.com/getsentry/sentry-javascript/issues/24298
chargomehttps://github.com/chargome
on Oct 7, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-32701975018
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/fa2f4e128a3cb0f3619b97d2fb1f1e9ad34738e9
https://docs.github.com/articles/closing-issues-via-commit-messages
fa2f4e1https://github.com/getsentry/sentry-javascript/commit/fa2f4e128a3cb0f3619b97d2fb1f1e9ad34738e9
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/86ed4ff511442455adb3c0ed01e7fa269140c4e2
https://docs.github.com/articles/closing-issues-via-commit-messages
86ed4ffhttps://github.com/getsentry/sentry-javascript/commit/86ed4ff511442455adb3c0ed01e7fa269140c4e2
feat(nextjs): Never emit trace meta tags from a prerenderhttps://github.com/getsentry/sentry-javascript/commit/4f12e9ee981159a2f7878630743b1628ce0861ac
https://docs.github.com/articles/closing-issues-via-commit-messages
4f12e9ehttps://github.com/getsentry/sentry-javascript/commit/4f12e9ee981159a2f7878630743b1628ce0861ac
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/4a8297e5dd34fdfe4d180e1e285490ba5a599784
https://docs.github.com/articles/closing-issues-via-commit-messages
4a8297ehttps://github.com/getsentry/sentry-javascript/commit/4a8297e5dd34fdfe4d180e1e285490ba5a599784
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/c4171669bddb7d944abacdcdd238cc7d00008e14
https://docs.github.com/articles/closing-issues-via-commit-messages
c417166https://github.com/getsentry/sentry-javascript/commit/c4171669bddb7d944abacdcdd238cc7d00008e14
feat(nextjs): Never emit trace meta tags from a prerenderhttps://github.com/getsentry/sentry-javascript/commit/66e2096b66ba8a84e9312cfd1f9e2592f7ae8490
https://docs.github.com/articles/closing-issues-via-commit-messages
66e2096https://github.com/getsentry/sentry-javascript/commit/66e2096b66ba8a84e9312cfd1f9e2592f7ae8490
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/87d1872bc8c7c19ad263b2e7344e2dd1dcbb0e35
https://docs.github.com/articles/closing-issues-via-commit-messages
87d1872https://github.com/getsentry/sentry-javascript/commit/87d1872bc8c7c19ad263b2e7344e2dd1dcbb0e35
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/114e53cfe58f19ae2d53c9c56d3d256f4491f368
https://docs.github.com/articles/closing-issues-via-commit-messages
114e53chttps://github.com/getsentry/sentry-javascript/commit/114e53cfe58f19ae2d53c9c56d3d256f4491f368
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/93e4fb7e285655c8da4065c8618ae58e24e6e1a0
https://docs.github.com/articles/closing-issues-via-commit-messages
93e4fb7https://github.com/getsentry/sentry-javascript/commit/93e4fb7e285655c8da4065c8618ae58e24e6e1a0
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/a9a3b55f2515f5ca443d2c5fad1d78ec8bd0a6a4
https://docs.github.com/articles/closing-issues-via-commit-messages
a9a3b55https://github.com/getsentry/sentry-javascript/commit/a9a3b55f2515f5ca443d2c5fad1d78ec8bd0a6a4
feat(nextjs): Never emit trace meta tags from a prerenderhttps://github.com/getsentry/sentry-javascript/commit/da9069a7a66ee4c3c48971b834c506feb82a8f61
https://docs.github.com/articles/closing-issues-via-commit-messages
da9069ahttps://github.com/getsentry/sentry-javascript/commit/da9069a7a66ee4c3c48971b834c506feb82a8f61
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/d69740029f4db28b0e1265e66f653be3a5f1412c
https://docs.github.com/articles/closing-issues-via-commit-messages
d697400https://github.com/getsentry/sentry-javascript/commit/d69740029f4db28b0e1265e66f653be3a5f1412c
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/89b6368219b1bd422c1ef34bb31711fcdbc68a6d
https://docs.github.com/articles/closing-issues-via-commit-messages
89b6368https://github.com/getsentry/sentry-javascript/commit/89b6368219b1bd422c1ef34bb31711fcdbc68a6d
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/2b097acedca61717a77237971aa86ba358de0ba7
https://docs.github.com/articles/closing-issues-via-commit-messages
2b097achttps://github.com/getsentry/sentry-javascript/commit/2b097acedca61717a77237971aa86ba358de0ba7
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/15564e8607a2a1d6841abb4e1237091de40ba6fe
https://docs.github.com/articles/closing-issues-via-commit-messages
15564e8https://github.com/getsentry/sentry-javascript/commit/15564e8607a2a1d6841abb4e1237091de40ba6fe
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/755e9ccd2ef6faba248ec4a0ff55c28703da0cbd
https://docs.github.com/articles/closing-issues-via-commit-messages
755e9cchttps://github.com/getsentry/sentry-javascript/commit/755e9ccd2ef6faba248ec4a0ff55c28703da0cbd
feat(nextjs): Never emit trace meta tags from a prerenderhttps://github.com/getsentry/sentry-javascript/commit/1b068ed9da314f2daf49fe6e13ec33a220ce3233
https://docs.github.com/articles/closing-issues-via-commit-messages
1b068edhttps://github.com/getsentry/sentry-javascript/commit/1b068ed9da314f2daf49fe6e13ec33a220ce3233
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/bf8dec55abbf13968f49d22f4c70de9fe2cc6f12
https://docs.github.com/articles/closing-issues-via-commit-messages
bf8dec5https://github.com/getsentry/sentry-javascript/commit/bf8dec55abbf13968f49d22f4c70de9fe2cc6f12
mydeahttps://github.com/mydea
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-33719982325
s1gr1dhttps://github.com/s1gr1d
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-33749352051
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/2301860f300b0e8fbad6484488fa96b49be397a6
https://docs.github.com/articles/closing-issues-via-commit-messages
2301860https://github.com/getsentry/sentry-javascript/commit/2301860f300b0e8fbad6484488fa96b49be397a6
feat(nextjs): Never emit trace meta tags from a prerender (#25141)https://github.com/getsentry/sentry-javascript/commit/2ad05287e310fe63200d7e1303ce196d8dbffb2b
#25141https://github.com/getsentry/sentry-javascript/pull/25141
https://docs.github.com/articles/closing-issues-via-commit-messages
2ad0528https://github.com/getsentry/sentry-javascript/commit/2ad05287e310fe63200d7e1303ce196d8dbffb2b
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25142https://github.com/getsentry/sentry-javascript/pull/25142
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-33757749436
s1gr1dhttps://github.com/s1gr1d
on Oct 20, 2026https://github.com/getsentry/sentry-javascript/issues/24944#event-33757753916
feat(nextjs): Wait for the resumed part of a document before starting…https://github.com/getsentry/sentry-javascript/commit/d28566e5674c3cc12bebbb14798691e238bfc698
https://docs.github.com/articles/closing-issues-via-commit-messages
d28566ehttps://github.com/getsentry/sentry-javascript/commit/d28566e5674c3cc12bebbb14798691e238bfc698
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 23, 2026https://github.com/getsentry/sentry-javascript/issues/24944#issuecomment-6363114673
GitHub Actionshttps://help.github.com/en/actions
#25142https://github.com/getsentry/sentry-javascript/pull/25142
11.9.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.9.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/24944
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/24944
chargomehttps://github.com/chargome
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
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.