Title: continueTrace doesn't propagate given trace ID (@sentry/cloudflare) · Issue #18296 · getsentry/sentry-javascript · GitHub
Open Graph Title: continueTrace doesn't propagate given trace ID (@sentry/cloudflare) · Issue #18296 · getsentry/sentry-javascript
X Title: continueTrace doesn't propagate given trace ID (@sentry/cloudflare) · Issue #18296 · 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/18296
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"continueTrace doesn't propagate given trace ID (@sentry/cloudflare)","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/cloudflare\n\n### SDK Version\n\n10.26.0\n\n### Framework Version\n\nwrangler: ^4.45.2\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```typescript\n\nasync function example(sentryContext) {\n // Restore trace context and wrap execution\n console.log('Trace ID before continueTrace', sentryContext.trace);\n\n return await Sentry.continueTrace(\n {\n sentryTrace: sentryContext.trace,\n baggage: sentryContext.baggage,\n },\n async () => {\n console.log('Trace ID after continueTrace', Sentry.getTraceData()['sentry-trace']);\n }\n );\n}\n```\n\n### Steps to Reproduce\n\nUse the code above.\n\n### Expected Result\n\nTrade ID before/after should be the same.\n\n### Actual Result\n\n\n```bash\nTrace ID before continueTrace 60069cc1ad20efb49eed40a7f47f1b8f-932954b3a43dbd9f-1\nTrace ID after continueTrace 6dfe5f15e9e14d8f9087a315b3cf6fda-8fe9055201ea5a4d-1\n```\n\n### Additional Context\n\nThis could be a limitation of the Cloudflare Workers environment, but I can't seem to get `Sentry.continueTrace` to work this way.\n\nThe background is I have a worker invocation with a trace _already_, and I'm trying to override that inside of `continueTrace`.\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/benvinegar","@type":"Person","name":"benvinegar"},"datePublished":"2025-11-24T02:54:53Z","url":"https://github.com/getsentry/sentry-javascript/issues/18296"}
| 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:490c9abe-8011-a6ac-abae-58ab9a335b2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F2E:2464DC:0912:0C00:6B0426F4 |
| html-safe-nonce | a66b494b031c65730743fdeff84e6f34f0b7a1712f7d01a7a71aa63d0e4172c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjJFOjI0NjREQzowOTEyOjBDMDA6NkIwNDI2RjQiLCJ2aXNpdG9yX2lkIjoiNDM3MTc5NDQ0MDEzMDY2ODI3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ed69242c2dc4a016e1aea7e8140d3917d941c9431904f99ebf639ec7e27dba73 |
| hovercard-subject-tag | issue:3656882592 |
| 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/18296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f10640a16ba5b48f18abec178a2e92353a1d7e284cdbad29bc168b5353ff06ea/getsentry/sentry-javascript/issues/18296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f10640a16ba5b48f18abec178a2e92353a1d7e284cdbad29bc168b5353ff06ea/getsentry/sentry-javascript/issues/18296 |
| 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 | benvinegar |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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