Uh oh!
There was an error while loading. Please reload this page.
feat(cloudflare): Add batch, exec, and withSession D1 instrumentation - #21292
Conversation
dc4ec0c to
c7c19ebComparesize-limit report 📦
|
c7c19eb to
c4b6af2CompareThere was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c4b6af2. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
👋 @mydea, @andreiborza — Please review this PR when you get a chance! |
| const runner = createRunner(__dirname) | ||
| .ignore('event') | ||
| .expect((envelope: Envelope) => { | ||
| if (envelopeItemType(envelope) !== 'transaction') return; |
There was a problem hiding this comment.
q: this would silently pass the test right? seems a bit weird. I think we should just hard fail if we don't have a transaction here, no?
There was a problem hiding this comment.
that is correct. I will add this
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>
bfb2367 to
527039eCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

closes#21275
closes JS-2658
This PR does 2 things:
batch,exec, andwithSession.withSessionis not doing anything as per spec, but instruments its return valuesprepareandbatchcloudflare.d1.query_typetodb.operation.nameand is therefore dependent on feat(attributes): Deprecate cloudflare.d1.query_type sentry-conventions#411db.operation.batch.size: feat(attributes): Add db.operation.batch.size sentry-conventions#407AI generated text:
Instrument
db.batch(),db.exec(), anddb.withSession()methodsthat were previously not covered by D1 instrumentation.