Title: Span streaming drops continued traces without baggage: empty frozen DSC leads to missing_dsc (breaks Uptime check traces) · Issue #25243 · getsentry/sentry-javascript · GitHub
Open Graph Title: Span streaming drops continued traces without baggage: empty frozen DSC leads to missing_dsc (breaks Uptime check traces) · Issue #25243 · getsentry/sentry-javascript
X Title: Span streaming drops continued traces without baggage: empty frozen DSC leads to missing_dsc (breaks Uptime check traces) · Issue #25243 · 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/25243
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Span streaming drops continued traces without baggage: empty frozen DSC leads to missing_dsc (breaks Uptime check traces)","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/node\n\n### SDK Version\n\n11.6.0\n\n### Framework Version\n\nNode.js 24.21.0 (first seen in production with @sentry/nestjs 11.0.0 on Fastify and @sentry/react-router 11.0.0)\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```js\nimport http from 'node:http';\nimport * as Sentry from '@sentry/node';\n\nSentry.init({\n dsn: 'https://public@o123.ingest.de.sentry.io/1',\n tracesSampleRate: 1,\n transport: (options) => Sentry.createTransport(options, () => Promise.resolve({ statusCode: 200 })),\n});\nSentry.getClient().on('beforeEnvelope', ([header, items]) => {\n if (items.some(([item]) => item.type === 'span')) console.log(header.trace ? 'trace header present' : 'NO trace header');\n});\n\nconst server = http.createServer((req, res) => res.end('ok'));\nserver.listen(0, async () => {\n await fetch(`http://127.0.0.1:${server.address().port}/`, {\n headers: { 'sentry-trace': `${'a'.repeat(32)}-${'b'.repeat(16)}-1` },\n });\n await Sentry.flush(2000);\n server.close();\n});\n```\n\n### Steps to Reproduce\n\n1. Run the script above with `@sentry/node` 11.6.0 (default `traceLifecycle: 'stream'`).\n2. It sends one request to its own server with a sampled `sentry-trace` header and no `baggage` header.\n3. Look at the logged envelope headers: the envelope with the incoming request's spans has no `trace` header. (The second envelope belongs to the outgoing `fetch`, which starts its own trace.)\n4. Add `strictTraceContinuation: true` to `Sentry.init` and run it again: now that envelope has a `trace` header.\n\n### Expected Result\n\nSpans of a request that continues a trace from a `sentry-trace` header without baggage reach Sentry, as the equivalent transactions did with SDK 10. For example the SDK could fill the DSC from the client (`trace_id`, `public_key`) in stream mode, Relay could accept such span envelopes, or the uptime checker could send baggage.\n\n### Actual Result\n\nThe span envelope of the incoming request goes out without a `trace` header, and Relay drops it. The org stats show those spans with outcome `invalid`, reason `missing_dsc`.\n\nIn production this hits Sentry Uptime monitoring: an uptime check on a readiness endpoint (trace sampling on) reaches two Node services every five minutes and gets a 200, but since the upgrade every span of those requests is dropped as `missing_dsc` (12 spans per check in one project, 14 in the other). A request to the same endpoint without trace headers is traced and accepted end to end. The check's requests apparently carry `sentry-trace` without Sentry baggage.\n\n### Additional Context\n\nWhere it comes from, in `@sentry/core` 11.6.0:\n\n- `propagationContextFromHeaders` (`build/esm/utils/tracing.js`) returns `dsc: dynamicSamplingContext || {}` when the traceparent has a trace id but no DSC came with it (\"we are not head of trace and we must freeze it\").\n- `createStreamedSpanEnvelope` (`build/esm/tracing/spans/envelope.js`) adds the `trace` envelope header only when `dscHasRequiredProps(dsc)` holds, which needs `trace_id` and `public_key`.\n\nWorkaround: `strictTraceContinuation: true`. The spans arrive again, but the services no longer continue the uptime check's trace, so the check and its downstream spans end up in separate traces.\n\n### Priority\n\n_No response_","author":{"url":"https://github.com/reichhartd","@type":"Person","name":"reichhartd"},"datePublished":"2026-10-09T18:43:13Z","url":"https://github.com/getsentry/sentry-javascript/issues/25243"}
| 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:a5638bb8-4675-7ba2-b3af-b39d2ec063dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE96:5F67C:38F3E1:4D2665:6B043FDE |
| html-safe-nonce | 855579aa6a58be4600c4fa2b3b30a2e369e24b1b344c755e1970c0df23e20d59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTk2OjVGNjdDOjM4RjNFMTo0RDI2NjU6NkIwNDNGREUiLCJ2aXNpdG9yX2lkIjoiMzk2MDg5MzY5NDg1NjY3NTI5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69bfbea891503b44c931ee3faec2dbda0aa09ea904b02ea7bbf48ccb06e9a032 |
| hovercard-subject-tag | issue:5782998989 |
| 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/25243/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41ae5c0d30f7d503cec332bcf6dd4747f817e6b1b26d515201bd0f8b9b3fceb2/getsentry/sentry-javascript/issues/25243 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41ae5c0d30f7d503cec332bcf6dd4747f817e6b1b26d515201bd0f8b9b3fceb2/getsentry/sentry-javascript/issues/25243 |
| 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 | reichhartd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 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