Skip to content

fix(cloudflare): Bind Durable Object built-in handlers#22340

Open
isaacs wants to merge 1 commit into
isaacs/fix-22328-afrom
isaacs/fix-22328
Open

fix(cloudflare): Bind Durable Object built-in handlers#22340
isaacs wants to merge 1 commit into
isaacs/fix-22328-afrom
isaacs/fix-22328

Conversation

@isaacs

@isaacs isaacs commented Jul 16, 2026

Copy link
Copy Markdown
Member

Bind handlers per instance so a second instance in the same isolate no longer reuses the first instance's captured context and options

fix: #22328
fix: JS-3067

@isaacs
isaacs requested a review from a team as a code owner July 16, 2026 23:52
@isaacs
isaacs requested review from JPeer264, andreiborza and mydea and removed request for a team July 16, 2026 23:52
@linear-code

linear-code Bot commented Jul 16, 2026

Copy link
Copy Markdown

JS-3067

Bind handlers per instance so a second instance in the same isolate no
longer reuses the first instance's captured context and options

fix: #22328
fix: JS-3067
@isaacs
isaacs force-pushed the isaacs/fix-22328-a branch from 82884e7 to 11eb627 Compare July 16, 2026 23:54
@isaacs
isaacs force-pushed the isaacs/fix-22328 branch from 071d2eb to 56772ae Compare July 16, 2026 23:54
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.74 kB - -
@sentry/browser - with treeshaking flags 26.19 kB - -
@sentry/browser (incl. Tracing) 46.57 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.34 kB - -
@sentry/browser (incl. Tracing, Replay) 85.83 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.46 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.55 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.18 kB - -
@sentry/browser (incl. Feedback) 44.92 kB - -
@sentry/browser (incl. sendFeedback) 32.54 kB - -
@sentry/browser (incl. FeedbackAsync) 37.67 kB - -
@sentry/browser (incl. Metrics) 28.84 kB - -
@sentry/browser (incl. Logs) 29.07 kB - -
@sentry/browser (incl. Metrics & Logs) 29.76 kB - -
@sentry/react 29.54 kB - -
@sentry/react (incl. Tracing) 48.82 kB - -
@sentry/vue 33.17 kB - -
@sentry/vue (incl. Tracing) 48.55 kB - -
@sentry/svelte 27.77 kB - -
CDN Bundle 30.14 kB - -
CDN Bundle (incl. Tracing) 48.52 kB - -
CDN Bundle (incl. Logs, Metrics) 31.72 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.83 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.97 kB - -
CDN Bundle (incl. Tracing, Replay) 86.04 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.82 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.09 kB - -
CDN Bundle - uncompressed 89.85 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.66 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.56 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.64 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.28 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.86 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.82 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.56 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.52 kB - -
@sentry/nextjs (client) 51.38 kB - -
@sentry/sveltekit (client) 47 kB - -
@sentry/core/server 78.71 kB - -
@sentry/core/browser 65.08 kB - -
@sentry/node-core 63.2 kB - -
@sentry/node 125.54 kB -0.01% -1 B 🔽
@sentry/node (incl. diagnostics channel injection) 148.09 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB -0.01% -2 B 🔽
@sentry/node/light 51.33 kB - -
@sentry/node - without tracing 74.7 kB -0.01% -3 B 🔽
@sentry/aws-serverless 83.92 kB -0.01% -1 B 🔽
@sentry/cloudflare (withSentry) - minified 182.14 kB +0.03% +40 B 🔺
@sentry/cloudflare (withSentry) 451.01 kB +0.03% +108 B 🔺

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

instrumentDurableObjectWithSentry prevents WebSocket Hibernation — a DO holding an accepted socket is billed ~100% wall-clock duration

1 participant