Title: nextjs incremental static rendering causes cached trace id, leading to merged client-side transactions from different users/requests · Issue #18176 · getsentry/sentry-javascript · GitHub
Open Graph Title: nextjs incremental static rendering causes cached trace id, leading to merged client-side transactions from different users/requests · Issue #18176 · getsentry/sentry-javascript
X Title: nextjs incremental static rendering causes cached trace id, leading to merged client-side transactions from different users/requests · Issue #18176 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18176
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nextjs incremental static rendering causes cached trace id, leading to merged client-side transactions from different users/requests","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n10.25.0\n\n### Framework Version\n\nNext 15.5.4 (app router, webpack bundler)\n\n### Link to Sentry event\n\nhttps://healthlearn.sentry.io/insights/frontend/summary/trace/7dfaa5ba195f93155d6a3473fbaebf7f/\n\n### Reproduction Example/SDK Setup\n\nWe have a route with incremental static rendering where this issue occurs.\nThe `app/(static)/go/[slug]/[[...share]]/page.tsx` looks like this:\n\n```ts\n// both of these also need to set for Incremental Static Regeneration...\n// https://github.com/vercel/next.js/discussions/57961#discussioncomment-8491488\nexport const dynamicParams = true;\nexport const generateStaticParams = async () => [];\n\nexport async function generateMetadata(props: {\n params: Promise\u003c{ slug: string; share?: string[] }>;\n}) {\n const params = await props.params;\n\n return {\n title: params.slug,\n };\n}\n\n\n// Note: this is a server-side component, and doesn't require auth\nexport default async function Page(props: {\n params: Promise\u003c{ slug: string; share?: string[] }>;\n}) {\n return (\n \u003c>hello world\u003c/>\n );\n}\n```\n\n### Steps to Reproduce\n\n1) Do a production build with a page like that.\n2) Load a url that hits that page\n3) refresh multiple times and you'll get the same trace id across requests\n\n\n### Expected Result\n\nI'd expect incremental static page to _not_ have a trace id in the cached output, and to only see client-side transaction data for these routes.\n\n### Actual Result\n\n\u003cimg width=\"1404\" height=\"215\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7b79f596-3c97-43f1-befb-9602604fce2b\" />\n\nWe get a bunch of erroneous trace timings for these incremental static routes because of the pageloads getting merged into one trace.\n\n### Additional Context\n\nIt appears that this isn't an issue for _normal_ static pages that are built during the build phase.\n\nI think [this PR](https://github.com/getsentry/sentry-javascript/pull/12157) may be closely related to the issue.\n\nI tried various ways to work around this, but I couldn't find a configuration flag to actually _prevent_ injection of the meta tags by default.\n\n","author":{"url":"https://github.com/karlkeefer","@type":"Person","name":"karlkeefer"},"datePublished":"2025-11-12T01:17:00Z","url":"https://github.com/getsentry/sentry-javascript/issues/18176"}
| 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:5c011677-8bcb-f1aa-334c-5f2a783cdf28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3B4:34DFBA:29E3BF9:362E611:6B040EC0 |
| html-safe-nonce | 585e4580ac6298b7d5287371a91b5bda2bbf903b1a00bbbce199074a1425e17e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0I0OjM0REZCQToyOUUzQkY5OjM2MkU2MTE6NkIwNDBFQzAiLCJ2aXNpdG9yX2lkIjoiNjA5NDgxOTk1NjQ2NDI5MTUyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 24eab922192d5aeaf27bc4f0821050b607a260bcb44a4004322fdebe56d388ab |
| hovercard-subject-tag | issue:3614458488 |
| 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/18176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5fea3cffdfb23ed0ac7ee66791b21e483efbbdd789fbeda8d763dbf514186fa8/getsentry/sentry-javascript/issues/18176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5fea3cffdfb23ed0ac7ee66791b21e483efbbdd789fbeda8d763dbf514186fa8/getsentry/sentry-javascript/issues/18176 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karlkeefer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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