Skip to content

feat(cloudflare): Filter framework-internal Durable Object storage spans - #22710

Merged
JPeer264 merged 1 commit into
developfrom
jp/ignore-internal-cloudflare-dos
Jul 28, 2026
Merged

feat(cloudflare): Filter framework-internal Durable Object storage spans#22710
JPeer264 merged 1 commit into
developfrom
jp/ignore-internal-cloudflare-dos

Conversation

@JPeer264

Copy link
Copy Markdown
Member

Same as with durableObjectSqlSpanAllowlist there are also a lot of durable object spans which need to be filtered out, otherwise Agent calls are full with these.

KV entries managed by Durable Object frameworks themselves (`agents`,
`partyserver`) — `cf_`-prefixed state keys, `__ps_` partyserver keys and
MCP OAuth client state under `/` — are bookkeeping rather than user work
and flooded traces with `durable_object_storage_*` spans. Skip spans for
those keys, mirroring how `cf_`-prefixed SQL tables are filtered, and add
a `durableObjectStorageSpanAllowlist` option to opt colliding user keys
back into instrumentation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@JPeer264 JPeer264 self-assigned this Jul 27, 2026
@JPeer264
JPeer264 requested a review from a team as a code owner July 27, 2026 13:37
@JPeer264
JPeer264 requested review from andreiborza and isaacs and removed request for a team July 27, 2026 13:37
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.02 kB - -
@sentry/browser - with treeshaking flags 26.46 kB - -
@sentry/browser (incl. Tracing) 46.54 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.46 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.3 kB - -
@sentry/browser (incl. Tracing, Replay) 85.87 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.51 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.58 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.22 kB - -
@sentry/browser (incl. Feedback) 45.2 kB - -
@sentry/browser (incl. sendFeedback) 32.82 kB - -
@sentry/browser (incl. FeedbackAsync) 37.86 kB - -
@sentry/browser (incl. Metrics) 29.12 kB - -
@sentry/browser (incl. Logs) 29.34 kB - -
@sentry/browser (incl. Metrics & Logs) 30.05 kB - -
@sentry/react 29.8 kB - -
@sentry/react (incl. Tracing) 48.85 kB - -
@sentry/vue 33.97 kB - -
@sentry/vue (incl. Tracing) 48.53 kB - -
@sentry/svelte 28.04 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 47.71 kB - -
CDN Bundle (incl. Logs, Metrics) 31.9 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.08 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 71.17 kB - -
CDN Bundle (incl. Tracing, Replay) 85.31 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.61 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.12 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.39 kB - -
CDN Bundle - uncompressed 90.26 kB - -
CDN Bundle (incl. Tracing) - uncompressed 143.22 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.97 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 147.2 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.73 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.47 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.18 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280.13 kB - -
@sentry/nextjs (client) 51.41 kB - -
@sentry/sveltekit (client) 47.01 kB - -
@sentry/core/server 79.57 kB - -
@sentry/core/browser 51.54 kB - -
@sentry/node 112.47 kB - -
@sentry/node (incl. diagnostics channel injection) 156.64 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 62.01 kB +0.01% +1 B 🔺
@sentry/aws-serverless 72.29 kB - -
@sentry/cloudflare (withSentry) - minified 196.58 kB +0.33% +637 B 🔺
@sentry/cloudflare (withSentry) 484.04 kB +0.32% +1.53 kB 🔺

View base workflow run

@JPeer264
JPeer264 merged commit d810c01 into develop Jul 28, 2026
85 checks passed
@JPeer264
JPeer264 deleted the jp/ignore-internal-cloudflare-dos branch July 28, 2026 10:51
JPeer264 added a commit that referenced this pull request Jul 28, 2026
JPeer264 added a commit that referenced this pull request Jul 28, 2026
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.

2 participants