Title: Cloudflare Worker are not waiting for streaming events · Issue #18360 · getsentry/sentry-javascript · GitHub
Open Graph Title: Cloudflare Worker are not waiting for streaming events · Issue #18360 · getsentry/sentry-javascript
X Title: Cloudflare Worker are not waiting for streaming events · Issue #18360 · getsentry/sentry-javascript
Description: Problem In getsentry/toolkit#652 we had to manually wait for the flush to ensure that async operations completed before the response was sent. This was caused by the MCP server streaming data after the actual request has been finished. W...
Open Graph Description: Problem In getsentry/toolkit#652 we had to manually wait for the flush to ensure that async operations completed before the response was sent. This was caused by the MCP server streaming data after...
X Description: Problem In getsentry/toolkit#652 we had to manually wait for the flush to ensure that async operations completed before the response was sent. This was caused by the MCP server streaming data after...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18360
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cloudflare Worker are not waiting for streaming events","articleBody":"## Problem\n\nIn https://github.com/getsentry/sentry-mcp/pull/652 we had to manually wait for the flush to ensure that async operations completed before the response was sent.\n\nThis was caused by the MCP server streaming data after the actual request has been finished. When using the Cloudflare SDK with MCP servers (or other streaming APIs), spans created during the streaming phase were not being flushed properly because the flush() method would complete before these async spans finished.","author":{"url":"https://github.com/JPeer264","@type":"Person","name":"JPeer264"},"datePublished":"2025-12-01T16:44:26Z","url":"https://github.com/getsentry/sentry-javascript/issues/18360"}
| 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:f0a95a22-1037-83c2-5b35-343f940aabae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD40:297F6F:1743C3:1F2DDD:6B042F97 |
| html-safe-nonce | 11faea2f3e723d341ef7a9d95aff4a4e81a0b7a3f0e345f87ba713bcc85fdd54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDQwOjI5N0Y2RjoxNzQzQzM6MUYyREREOjZCMDQyRjk3IiwidmlzaXRvcl9pZCI6IjI3MDUzNTE1MTg3MzkyNDY5OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a89664c2ed84b03ce114cd549a2a545d1c94d2cd81d9e6385353e61c8db97e1 |
| hovercard-subject-tag | issue:3681893841 |
| 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/18360/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42bfea7e468b9249781f70150bc484ce5e4ebcc12d45b7eca1587f3afb6c9e06/getsentry/sentry-javascript/issues/18360 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42bfea7e468b9249781f70150bc484ce5e4ebcc12d45b7eca1587f3afb6c9e06/getsentry/sentry-javascript/issues/18360 |
| og:image:alt | Problem In getsentry/toolkit#652 we had to manually wait for the flush to ensure that async operations completed before the response was sent. This was caused by the MCP server streaming data after... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JPeer264 |
| 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