Skip to content

feat(cloudflare): Add batch, exec, and withSession D1 instrumentation#21292

Draft
JPeer264 wants to merge 1 commit into
jp/deprecate-d1-instrument-via-envfrom
jp/missing-d1-instrumentations
Draft

feat(cloudflare): Add batch, exec, and withSession D1 instrumentation#21292
JPeer264 wants to merge 1 commit into
jp/deprecate-d1-instrument-via-envfrom
jp/missing-d1-instrumentations

Conversation

@JPeer264
Copy link
Copy Markdown
Member

@JPeer264 JPeer264 commented Jun 2, 2026

This PR does 2 things:

  1. It adds missing methods of D1 and adds a span to each
    • batch, exec, and withSession. withSession is not doing anything as per spec, but instruments its return values prepare and batch
  2. Some Sentry convention updates

AI generated text:

Instrument db.batch(), db.exec(), and db.withSession() methods
that were previously not covered by D1 instrumentation.

@JPeer264 JPeer264 self-assigned this Jun 2, 2026
Instrument `db.batch()`, `db.exec()`, and `db.withSession()` methods
that were previously not covered by D1 instrumentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JPeer264 JPeer264 force-pushed the jp/missing-d1-instrumentations branch from dc4ec0c to c7c19eb Compare June 2, 2026 12:55
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.2 kB added added
@sentry/browser - with treeshaking flags 25.65 kB added added
@sentry/browser (incl. Tracing) 45.25 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 47.47 kB added added
@sentry/browser (incl. Tracing, Profiling) 50.24 kB added added
@sentry/browser (incl. Tracing, Replay) 84.83 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.4 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 89.54 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 102.16 kB added added
@sentry/browser (incl. Feedback) 44.36 kB added added
@sentry/browser (incl. sendFeedback) 32.02 kB added added
@sentry/browser (incl. FeedbackAsync) 37.11 kB added added
@sentry/browser (incl. Metrics) 28.27 kB added added
@sentry/browser (incl. Logs) 28.51 kB added added
@sentry/browser (incl. Metrics & Logs) 29.22 kB added added
@sentry/react 29.03 kB added added
@sentry/react (incl. Tracing) 47.52 kB added added
@sentry/vue 32.22 kB added added
@sentry/vue (incl. Tracing) 47.16 kB added added
@sentry/svelte 27.23 kB added added
CDN Bundle 29.57 kB added added
CDN Bundle (incl. Tracing) 47.81 kB added added
CDN Bundle (incl. Logs, Metrics) 31.08 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 49.05 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 70.34 kB added added
CDN Bundle (incl. Tracing, Replay) 85.18 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.35 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 91.05 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.2 kB added added
CDN Bundle - uncompressed 87.7 kB added added
CDN Bundle (incl. Tracing) - uncompressed 144.11 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 92.19 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 147.87 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 216.91 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.88 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.63 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.58 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280.32 kB added added
@sentry/nextjs (client) 50.04 kB added added
@sentry/sveltekit (client) 45.7 kB added added
@sentry/core/server 75.94 kB added added
@sentry/core/browser 63.09 kB added added
@sentry/node-core 61.7 kB added added
@sentry/node 130.4 kB added added
@sentry/node - without tracing 74.06 kB added added
@sentry/aws-serverless 86.26 kB added added
@sentry/cloudflare (withSentry) - minified 174.12 kB added added
@sentry/cloudflare (withSentry) 434.63 kB added added

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.

1 participant