Title: [Cloudflare workflows] Dedicated span do not show up in error reports · Issue #17419 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Cloudflare workflows] Dedicated span do not show up in error reports · Issue #17419 · getsentry/sentry-javascript
X Title: [Cloudflare workflows] Dedicated span do not show up in error reports · Issue #17419 · 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/17419
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Cloudflare workflows] Dedicated span do not show up in error reports","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.3.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\nhttps://ansearch.sentry.io/traces/trace/490b74c4ebdf422880ad494ec5500f27/?end=2025-08-16T01%3A23%3A57&mode=samples&node=span-bca03ce942e255f4&pageEnd=Sat%20Aug%2016%202025%2002%3A23%3A57%20GMT%2B0100%20%28British%20Summer%20Time%29&pageStart=Wed%20Aug%2013%202025%2002%3A23%3A57%20GMT%2B0100%20%28British%20Summer%20Time%29&project=-1&query=trace%3A490b74c4ebdf422880ad494ec5500f27&source=traces&start=2025-08-13T01%3A23%3A57&statsPeriod&table=trace×tamp=1755178643.709\n\n### Reproduction Example/SDK Setup\n\nNested manual spans as described here: `https://docs.sentry.io/platforms/javascript/guides/cloudflare/tracing/span-metrics/#creating-dedicated-metric-spans` are not showing up in error traces.\n\nI'm facing some deep issues in my workflows, and using the spans to debug what is happening. To do so, I'm nesting spans (one span for multiple step.do that are related)\n\nThe issue is none of those nested span are showing up in the dashboard, making it impossible to track what is going on\n\n### Steps to Reproduce\n\n```typescript\nclass WorkflowIngestBase extends WorkflowEntrypoint\u003c\n Cloudflare.Env,\n IngestionWorkflowParameters\n> {\n async run(\n event: WorkflowEvent\u003cIngestionWorkflowParameters>,\n step: WorkflowStep,\n ): Promise\u003cvoid> {\n const page = step.do('fetch page'() => {...})\n\n for (const item in page.item){\n Sentry.startSpan(\n {\n name: 'my custom span',\n attributes: {\n pageID: page.id,\n }\n },\n async () => {\n await step.do('process page item', async () => {...})\n await step.do('save item', async () => {...})\n }\n );\n }\n }\n}\n\nexport const WorkflowIngest = SentryCloudflare.instrumentWorkflowWithSentry(\n (_environment: Cloudflare.Env) => {\n return {\n dsn: '...',\n ...customSentryConfig,\n };\n },\n WorkflowIngestBase,\n);\n```\n\n### Expected Result\n\n(in Sentry)\n\nTrace\n|- step.do *fetch page*\n|- *my custom span*\n| |- step.do *process item*\n| |- step.do *save item*\n|- *my custom span*\n| |- step.do *process item*\n| |- step.do *save item*\n| ...\n\n### Actual Result\n\n(in Sentry)\n\nTrace\n|- step.do *fetch page*\n|- step.do *process item*\n|- step.do *save item*\n|- step.do *process item*\n|- step.do *save item*","author":{"url":"https://github.com/Mael-Abgrall","@type":"Person","name":"Mael-Abgrall"},"datePublished":"2025-08-14T14:50:11Z","url":"https://github.com/getsentry/sentry-javascript/issues/17419"}
| 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:4082d530-de5d-cb91-8c92-c5fc1a22fb93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 892E:12E8E1:8F386C:C22AE1:6B0538B6 |
| html-safe-nonce | 64432b0f0d7fac86c38d1556840324bb5a4b5b93ea1e75a54b4fbaedcaebf272 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTJFOjEyRThFMTo4RjM4NkM6QzIyQUUxOjZCMDUzOEI2IiwidmlzaXRvcl9pZCI6IjkyMjE5NjgzNTc0Mzg2MDEzOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e2bcd352a25032222ab34ec98185edeab137531e133666bcc0c880aa733328a |
| hovercard-subject-tag | issue:3322520701 |
| 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/17419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aea1474b22264088763fadb724ecce9efa0aba914b62792139af694fa6e18c95/getsentry/sentry-javascript/issues/17419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aea1474b22264088763fadb724ecce9efa0aba914b62792139af694fa6e18c95/getsentry/sentry-javascript/issues/17419 |
| 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 | Mael-Abgrall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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