Skip to content

feat(node): Enable dataloader and knex integrations by default - #24312

Draft
mydea wants to merge 1 commit into
developfrom
feat/dataloader-knex-default-integrations
Draft

feat(node): Enable dataloader and knex integrations by default#24312
mydea wants to merge 1 commit into
developfrom
feat/dataloader-knex-default-integrations

Conversation

@mydea

@mydea mydea commented Sep 10, 2026

Copy link
Copy Markdown
Member

Adds dataloaderIntegration and knexIntegration to getTracingIntegrations(), so both ship as default tracing integrations like every other channel-based integration, rather than requiring users to register them manually.

Both were the only two orchestrion-instrumented integrations that are publicly exported and have channel definitions but were absent from the default set. Investigating why surfaced that neither omission is still justified:

Users can still disable either via defaultIntegrations.

The now-redundant explicit dataloaderIntegration() / knexIntegration() registrations are dropped from the node integration-test instrument files so those suites now exercise the default-registration path. The dataloader suite passes with no explicit registration, confirming the default wiring works end-to-end.

🤖 Generated with Claude Code

Add `dataloaderIntegration` and `knexIntegration` to `getTracingIntegrations()`
so both are registered by default like every other channel-based integration.

`dataloader` was removed from the defaults in v8 (#13873) due to an upstream
OpenTelemetry bug (#13869) that broke custom DataLoader subclass methods. That
issue is now closed and fixed upstream, and since #22754 the integration is
channel-only — it no longer wraps/replaces the DataLoader class, so the original
breakage mechanism no longer applies. `knex` was never enabled by default.

Drop the now-redundant explicit registration from the node integration-test
instrument files so they exercise the default path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.92 kB +0.41% +118 B 🔺
@sentry/browser - with treeshaking flags 27.21 kB +0.41% +109 B 🔺
@sentry/browser - with treeshaking flags tracing without tracing 27.11 kB +0.39% +103 B 🔺
@sentry/browser (incl. Tracing) 50.28 kB +2.17% +1.06 kB 🔺
@sentry/browser (incl. Tracing + Span Streaming) 50.29 kB +2.17% +1.07 kB 🔺
@sentry/browser (incl. Tracing, Profiling) 53.27 kB +2.2% +1.14 kB 🔺
@sentry/browser (incl. Tracing, Replay) 89.77 kB +1.14% +1 kB 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 78.86 kB +1.17% +910 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 94.46 kB +1.09% +1.01 kB 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 107.47 kB +1.03% +1.09 kB 🔺
@sentry/browser (incl. Feedback) 46.41 kB +0.26% +116 B 🔺
@sentry/browser (incl. sendFeedback) 33.97 kB +0.31% +103 B 🔺
@sentry/browser (incl. FeedbackAsync) 39.08 kB +0.26% +101 B 🔺
@sentry/browser (incl. Metrics) 29.93 kB +0.38% +113 B 🔺
@sentry/browser (incl. Logs) 30.2 kB +0.37% +110 B 🔺
@sentry/browser (incl. Metrics & Logs) 30.87 kB +0.4% +121 B 🔺
@sentry/react 30.67 kB +0.4% +122 B 🔺
@sentry/react (incl. Tracing) 52.6 kB +2.03% +1.04 kB 🔺
@sentry/vue 36.16 kB +0.3% +108 B 🔺
@sentry/vue (incl. Tracing) 52.53 kB +2.06% +1.06 kB 🔺
@sentry/svelte 28.93 kB +0.35% +99 B 🔺
CDN Bundle 30.66 kB +0.35% +106 B 🔺
CDN Bundle (incl. Tracing) 50.78 kB +2.11% +1.05 kB 🔺
CDN Bundle (incl. Logs, Metrics) 32.93 kB +0.35% +113 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 52.74 kB +2.02% +1.04 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.62 kB +0.2% +144 B 🔺
CDN Bundle (incl. Tracing, Replay) 88.33 kB +1.19% +1.04 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 90.29 kB +1.25% +1.11 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 94.37 kB +1.24% +1.15 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 96.38 kB +1.24% +1.18 kB 🔺
CDN Bundle - uncompressed 90.73 kB +0.3% +270 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 151.69 kB +2.38% +3.52 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.31 kB +0.29% +279 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 157.66 kB +2.29% +3.52 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.72 kB +0.2% +430 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 271.26 kB +1.31% +3.5 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 277.21 kB +1.28% +3.5 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 284.96 kB +1.25% +3.5 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 290.9 kB +1.22% +3.5 kB 🔺
@sentry/nextjs (client) 54.92 kB +1.71% +922 B 🔺
@sentry/sveltekit (client) 50.7 kB +2.12% +1.05 kB 🔺
@sentry/core/server 37.08 kB +0.26% +96 B 🔺
@sentry/core/browser 13.66 kB +0.82% +110 B 🔺
@sentry/node 129.76 kB +1.55% +1.97 kB 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.82 kB +0.26% +205 B 🔺
@sentry/node - without tracing 89.55 kB +0.95% +839 B 🔺
@sentry/node - without channel injection 108.66 kB +1.53% +1.63 kB 🔺
@sentry/aws-serverless 97.77 kB +0.7% +677 B 🔺
@sentry/cloudflare (withSentry) - minified 203.01 kB +0.52% +1.03 kB 🔺
@sentry/cloudflare (withSentry) 505.44 kB +0.55% +2.76 kB 🔺

View base workflow run

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