Title: Cloudflare Durable Object instrumentDurableObjectWithSentry throwing errors · Issue #17094 · getsentry/sentry-javascript · GitHub
Open Graph Title: Cloudflare Durable Object instrumentDurableObjectWithSentry throwing errors · Issue #17094 · getsentry/sentry-javascript
X Title: Cloudflare Durable Object instrumentDurableObjectWithSentry throwing errors · Issue #17094 · 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/17094
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cloudflare Durable Object instrumentDurableObjectWithSentry throwing errors","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\n9.40.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\n```\nexport const CallAgent = CallAgentBase;\n\nexport const CallAgent = Sentry.instrumentDurableObjectWithSentry(\n () => ({\n dsn: \"REDACTED\",\n tracesSampleRate: 1.0,\n }),\n CallAgentBase\n);\n```\n\nI get no errors with the first line, I get \n\n```\n✘ [ERROR] Uncaught Error: #\u003cPromise> \n\n\n✘ [ERROR] Uncaught Error: #\u003cPromise> \n\n\n✘ [ERROR] Uncaught Error: #\u003cPromise> \n\n\n✘ [ERROR] Uncaught Error: #\u003cPromise> \n\n\n✘ [ERROR] Uncaught Error: #\u003cPromise> \n```\nFrom wrangler with the second line.\n\nAdditional context is that this is wrapping a cloudflare agent (which is just a DO)\n\n### Expected Result\n\nNo errors when using `instrumentDurableObjectWithSentry`\n\n### Actual Result\n\nUncaught error","author":{"url":"https://github.com/danieljvdm","@type":"Person","name":"danieljvdm"},"datePublished":"2025-07-19T16:24:30Z","url":"https://github.com/getsentry/sentry-javascript/issues/17094"}
| 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:e6a2a230-e08d-60e5-8434-66980700c5fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89D0:43FFA:46C642:5EEEFB:6B04F4C3 |
| html-safe-nonce | bdfadd0f4f9939d1a79f9bad2a599813d94aee871be15b9cbf2c7939dd251fc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUQwOjQzRkZBOjQ2QzY0Mjo1RUVFRkI6NkIwNEY0QzMiLCJ2aXNpdG9yX2lkIjoiNjg0MTE2NjM5NjQwNDMzMTcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0be0f9f6d8bfd879b88111cab2b8e6c0ed287e546442f46b833857575ac1118f |
| hovercard-subject-tag | issue:3245427872 |
| 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/17094/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1db5aeb31ecf5bed62bbf55f3f02b5dbeda458526ffdb8aa06ab36c86eb6824c/getsentry/sentry-javascript/issues/17094 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1db5aeb31ecf5bed62bbf55f3f02b5dbeda458526ffdb8aa06ab36c86eb6824c/getsentry/sentry-javascript/issues/17094 |
| 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 | danieljvdm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c3971d6ab4be607cf9a26ac26ef0a7bfce380ec2ba14642e64028ad07a492b9 |
| 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 | b3f1d45dee14b3f87c64e9017a9c08d011561786 |
| 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