Skip to content

feat(node)!: Make dataloader and knex integrations channel-only - #22754

Merged
andreiborza merged 1 commit into
developfrom
ab/dataloader-knex-channel-only
Jul 28, 2026
Merged

feat(node)!: Make dataloader and knex integrations channel-only#22754
andreiborza merged 1 commit into
developfrom
ab/dataloader-knex-channel-only

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Removes the vendored OpenTelemetry fallback from the node dataloaderIntegration and knexIntegration. They are now re-exported directly from @sentry/server-utils, matching the other channel-based integrations.

Why

These were the only two integrations still keeping a vendored OTel instrumentation as a runtime fallback (used when diagnostics-channel injection was unavailable). Making them channel-only removes the last vendored DB instrumentation and aligns them with every other integration since channel-based became the default (#22501).

Note: on runtimes without diagnostics-channel injection (e.g. Bun, Deno, older Node, or when injection fails), these integrations no longer produce spans, consistent with the other integrations.

Ref: #22346

Removes the vendored OpenTelemetry fallback from the node `dataloaderIntegration`
and `knexIntegration`, re-exporting the channel-based implementations from
`@sentry/server-utils` directly. Previously these fell back to the vendored OTel
instrumentation on runtimes without diagnostics-channel injection; they are now
channel-only, consistent with the other performance integrations.

Ref: #22346

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@andreiborza
andreiborza requested review from JPeer264 and chargome July 28, 2026 11:17
@andreiborza
andreiborza marked this pull request as ready for review July 28, 2026 11:17
@andreiborza
andreiborza requested a review from a team as a code owner July 28, 2026 11:17
@andreiborza
andreiborza merged commit 8935963 into develop Jul 28, 2026
187 checks passed
@andreiborza
andreiborza deleted the ab/dataloader-knex-channel-only branch July 28, 2026 11:28
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