Skip to content

[skill-drift] update(sentry-cloudflare-sdk): document D1 batch/exec/withSession and Durable Object SQL storage - #224

Merged
cleptric merged 2 commits into
mainfrom
skill-drift/sentry-cloudflare-sdk-skill-drift-update-sentry-cloudflare-sdk-1782742199
Jul 1, 2026
Merged

[skill-drift] update(sentry-cloudflare-sdk): document D1 batch/exec/withSession and Durable Object SQL storage#224
cleptric merged 2 commits into
mainfrom
skill-drift/sentry-cloudflare-sdk-skill-drift-update-sentry-cloudflare-sdk-1782742199

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Warning

Auto-generated from external SDK content. Review all links and code suggestions before acting on them.

Summary

The skill incorrectly documented that db.batch() and db.exec() are not instrumented, but these methods were added in v10.61.0 (#21292). Additionally, Durable Object SQL storage instrumentation was added (#21656).

Changes

D1 Instrumentation (v10.61.0+)

Added to instrumented methods table:

  • db.batch(statements[]) - executes multiple prepared statements atomically
  • db.exec(query) - executes raw SQL directly
  • db.withSession(callback) - returns instrumented session with traced prepare() and batch() methods

Updated:

  • Removed incorrect "Limitations" section stating batch/exec are not instrumented
  • Added "Batch Operations" section with usage example
  • Added "Sessions" section documenting withSession() instrumentation
  • Updated tracing.md with examples of batch, exec, and session-based queries
  • Updated troubleshooting entries to reflect new capabilities
  • Bumped documented SDK version from v10.59.0 → v10.61.0

Durable Object SQL Storage (v10.61.0+)

Added new section:

  • Documents automatic instrumentation of ctx.storage.sql.exec() for Durable Objects
  • Includes span attributes: db.system.name, db.operation.name, db.query.text, db.query.summary, cloudflare.durable_object.query.bindings
  • Usage example showing CREATE TABLE, INSERT, and SELECT queries

Reviewed PRs

  • #21292 - feat(cloudflare): Add batch, exec, and withSession D1 instrumentation
  • #21656 - feat(cloudflare): Instrument SQL API in sqlite durable objects
  • #21774 - meta(changelog): Update changelog for 10.61.0

Files Modified

  • skills/sentry-cloudflare-sdk/SKILL.md
  • skills/sentry-cloudflare-sdk/references/durable-objects.md
  • skills/sentry-cloudflare-sdk/references/tracing.md

Source PRs

…ithSession and Durable Object SQL storage

Automated drift-fix run.

Co-Authored-By: Claude (claude-sonnet-4-5) <noreply@anthropic.com>
@github-actions
github-actions Bot requested a review from a team as a code owner June 29, 2026 14:10
@github-actions
github-actions Bot requested review from JPeer264, andreiborza and mydea and removed request for a team June 29, 2026 14:10
Comment thread skills/sentry-cloudflare-sdk/references/durable-objects.md
Comment thread skills/sentry-cloudflare-sdk/references/durable-objects.md Outdated
Comment thread skills/sentry-cloudflare-sdk/references/durable-objects.md Outdated
…/exec/withSession and Durable Object SQL storage
@JPeer264
JPeer264 force-pushed the skill-drift/sentry-cloudflare-sdk-skill-drift-update-sentry-cloudflare-sdk-1782742199 branch from b845e0c to 8357721 Compare July 1, 2026 09:02
@cleptric
cleptric merged commit 6ba0158 into main Jul 1, 2026
18 checks passed
@cleptric
cleptric deleted the skill-drift/sentry-cloudflare-sdk-skill-drift-update-sentry-cloudflare-sdk-1782742199 branch July 1, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants