Skip to content

feat(attributes): Deprecate cloudflare.d1.query_type#411

Merged
JPeer264 merged 1 commit into
mainfrom
jp/deprecate-d1-query-type
Jun 15, 2026
Merged

feat(attributes): Deprecate cloudflare.d1.query_type#411
JPeer264 merged 1 commit into
mainfrom
jp/deprecate-d1-query-type

Conversation

@JPeer264

@JPeer264 JPeer264 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Description

I went over the Cloudflare D1 instrumentation and saw cloudflare.d1.query_type. Since the query type is the same as the db.operation.name it would be better to use this one (it would also be aligned with workerd itself)

A PR will follow in the SDK to update the field

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for pii (i.e. maybe or true. Use false only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@JPeer264 JPeer264 self-assigned this Jun 2, 2026
@JPeer264
JPeer264 requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners June 2, 2026 11:27
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Deprecate cloudflare.d1.query_type by JPeer264 in #411
  • Add Cloudflare R2 attributes by JPeer264 in #413
  • Add FaaS/AWS conventions and deprecate Lambda-specific attributes by ericapisani in #414

Other

  • (description) Add span description conventions by mjq in #422
  • Add span name conventions for MCP server spans by gggritso in #377

Internal Changes 🔧

Pii

  • Review pii settings for attributes part 2 by Dav1dde in #425
  • Review pii settings for attributes by Dav1dde in #424

Other

  • (name) Disallow replaced attributes by mjq in #423

🤖 This preview updates automatically when you update the PR.

@JPeer264
JPeer264 force-pushed the jp/deprecate-d1-query-type branch from 63e6c39 to 52be7cd Compare June 15, 2026 08:37
@JPeer264
JPeer264 enabled auto-merge (squash) June 15, 2026 08:38
@JPeer264
JPeer264 merged commit 119ec2b into main Jun 15, 2026
15 checks passed
@JPeer264
JPeer264 deleted the jp/deprecate-d1-query-type branch June 15, 2026 08:40
JPeer264 added a commit to getsentry/sentry-javascript that referenced this pull request Jun 24, 2026
…#21292)

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
- it changes `cloudflare.d1.query_type` to `db.operation.name` and is
therefore dependent on
getsentry/sentry-conventions#411
- it also uses `db.operation.batch.size`:
getsentry/sentry-conventions#407

---

AI generated text:

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>
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.

3 participants