Skip to content

fix(cloudflare): Skip spans for Cloudflare-internal Durable Object SQL queries - #22376

Merged
JPeer264 merged 3 commits into
developfrom
jp/ignore-internal-spans
Jul 20, 2026
Merged

fix(cloudflare): Skip spans for Cloudflare-internal Durable Object SQL queries#22376
JPeer264 merged 3 commits into
developfrom
jp/ignore-internal-spans

Conversation

@JPeer264

@JPeer264JPeer264 commented Jul 17, 2026

Copy link
Copy Markdown
Member

agents generates a lot of internal spans, which are mainly noise. The workers-sdk actually proofs that the summary with a cf_ prefix are internal. So these are now filtered by default.

I thought about having an option to enable them, but I don't think this adds a lot of value.

Screenshot 2026-07-17 at 22 38 30

In case users have cf_ prefixed spans in their app they can use: durableObjectSqlSpanAllowlist: [] to allow them, this would also be helpful if you want to get cf internal spans activated.

@JPeer264JPeer264 self-assigned this Jul 17, 2026
@JPeer264
JPeer264 requested a review from a team as a code ownerJuly 17, 2026 20:40
@JPeer264
JPeer264 requested review from andreiborza and isaacs and removed request for a teamJuly 17, 2026 20:40
@github-actions

github-actionsBot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser27.75 kB--
@sentry/browser - with treeshaking flags26.18 kB--
@sentry/browser (incl. Tracing)46.56 kB--
@sentry/browser (incl. Tracing + Span Streaming)48.37 kB--
@sentry/browser (incl. Tracing, Profiling)51.36 kB--
@sentry/browser (incl. Tracing, Replay)85.83 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags75.46 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)90.55 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)103.2 kB--
@sentry/browser (incl. Feedback)44.93 kB--
@sentry/browser (incl. sendFeedback)32.55 kB--
@sentry/browser (incl. FeedbackAsync)37.69 kB--
@sentry/browser (incl. Metrics)28.83 kB--
@sentry/browser (incl. Logs)29.05 kB--
@sentry/browser (incl. Metrics & Logs)29.76 kB--
@sentry/react29.54 kB--
@sentry/react (incl. Tracing)48.84 kB--
@sentry/vue33.17 kB--
@sentry/vue (incl. Tracing)48.52 kB--
@sentry/svelte27.78 kB--
CDN Bundle30.14 kB--
CDN Bundle (incl. Tracing)48.53 kB--
CDN Bundle (incl. Logs, Metrics)31.73 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)49.83 kB--
CDN Bundle (incl. Replay, Logs, Metrics)70.98 kB--
CDN Bundle (incl. Tracing, Replay)86.04 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)87.34 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)91.84 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)93.11 kB--
CDN Bundle - uncompressed89.88 kB--
CDN Bundle (incl. Tracing) - uncompressed146.73 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed94.59 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed150.71 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed219.32 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed265.94 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed269.9 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed279.64 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed283.6 kB--
@sentry/nextjs (client)51.36 kB--
@sentry/sveltekit (client)46.99 kB--
@sentry/core/server78.65 kB--
@sentry/core/browser65.08 kB--
@sentry/node-core63.21 kB-0.01%-1 B 🔽
@sentry/node125.66 kB--
@sentry/node (incl. diagnostics channel injection)149.43 kB--
@sentry/node/import (ESM hook with diagnostics-channel injection)70.03 kB--
@sentry/node/light51.32 kB--
@sentry/node - without tracing74.92 kB--
@sentry/aws-serverless84.15 kB--
@sentry/cloudflare (withSentry) - minified184.25 kB+0.14%+246 B 🔺
@sentry/cloudflare (withSentry)456.12 kB+0.16%+709 B 🔺

View base workflow run

Comment threadpackages/cloudflare/src/utils/internalSqlQuery.ts Outdated
Comment threadpackages/cloudflare/src/utils/internalSqlQuery.ts
@JPeer264
JPeer264 merged commit 326fbc9 into developJul 20, 2026
607 of 611 checks passed
@JPeer264
JPeer264 deleted the jp/ignore-internal-spans branch July 20, 2026 08:41
Sign up for freeto 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

@JPeer264@andreiborza