Skip to content

feat(node/bun): Enable dedupeIntegration by default - #24794

Merged
JPeer264 merged 2 commits into
developfrom
feat/dedupe-default-node-bun
Sep 29, 2026
Merged

JPeer264 merged 2 commits into
developfrom
feat/dedupe-default-node-bun

Conversation

@JPeer264

Copy link
Copy Markdown
Member

Node and Bun have not included dedupeIntegration in their default integrations since v5, while the browser, Deno, Vercel Edge and Cloudflare SDKs do. Add it to the Node and Bun defaults (we also claim that in our docs)

anrIntegration collects contexts by running a placeholder event through all event processors on every worker start. On a restart, Dedupe dropped that event and ANR events lost their contexts. Skip the Dedupe processor there.

Tests that trigger the same server error in consecutive requests now remove Dedupe, because only the first of these events would be sent.

@JPeer264
JPeer264 requested a review from timfish September 28, 2026 10:49
@JPeer264 JPeer264 self-assigned this Sep 28, 2026
@JPeer264
JPeer264 requested a review from a team as a code owner September 28, 2026 10:49
@JPeer264
JPeer264 requested review from andreiborza and isaacs and removed request for a team September 28, 2026 10:49
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.24 kB - -
@sentry/browser - with treeshaking flags 27.5 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.4 kB - -
@sentry/browser (incl. Tracing) 51.15 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.18 kB - -
@sentry/browser (incl. Tracing, Replay) 90.76 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.46 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.41 kB - -
@sentry/browser (incl. Feedback) 46.76 kB - -
@sentry/browser (incl. sendFeedback) 34.3 kB - -
@sentry/browser (incl. FeedbackAsync) 39.41 kB - -
@sentry/browser (incl. Metrics) 30.25 kB - -
@sentry/browser (incl. Logs) 30.51 kB - -
@sentry/browser (incl. Metrics & Logs) 31.18 kB - -
@sentry/react 31.08 kB - -
@sentry/react (incl. Tracing) 53.54 kB - -
@sentry/vue 36.74 kB - -
@sentry/vue (incl. Tracing) 53.7 kB - -
@sentry/svelte 29.26 kB - -
CDN Bundle 31.02 kB - -
CDN Bundle (incl. Tracing) 51.78 kB - -
CDN Bundle (incl. Logs, Metrics) 33.29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.75 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74 kB - -
CDN Bundle (incl. Tracing, Replay) 89.37 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.53 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.5 kB - -
CDN Bundle - uncompressed 91.66 kB - -
CDN Bundle (incl. Tracing) - uncompressed 154.05 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 98.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 160 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.8 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.78 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.48 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.41 kB - -
@sentry/nextjs (client) 55.78 kB - -
@sentry/sveltekit (client) 51.6 kB - -
@sentry/core/server 39.99 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 142.24 kB +0.24% +329 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.88 kB - -
@sentry/node - without tracing 91.25 kB +0.37% +332 B 🔺
@sentry/node - without channel injection 120.64 kB +0.3% +354 B 🔺
@sentry/aws-serverless 99.52 kB +0.36% +349 B 🔺
@sentry/cloudflare (withSentry) - minified 206.64 kB - -
@sentry/cloudflare (withSentry) 514.04 kB - -

View base workflow run

@JPeer264
JPeer264 force-pushed the feat/dedupe-default-node-bun branch from dcb8bc2 to bffc3f2 Compare September 29, 2026 06:58
JPeer264 and others added 2 commits September 29, 2026 16:51
Node and Bun have not included `dedupeIntegration` in their default
integrations since v5, while the browser, Deno, Vercel Edge and Cloudflare
SDKs do. Add it to the Node and Bun defaults.

`anrIntegration` collects contexts by running a placeholder event through
all event processors on every worker start. On a restart, Dedupe dropped
that event and ANR events lost their contexts. Skip the Dedupe processor
there.

Tests that trigger the same server error in consecutive requests now
remove Dedupe, because only the first of these events would be sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264
JPeer264 force-pushed the feat/dedupe-default-node-bun branch from e6e486c to eff984e Compare September 29, 2026 13:51
@JPeer264
JPeer264 merged commit 28046a9 into develop Sep 29, 2026
1007 of 1011 checks passed
@JPeer264
JPeer264 deleted the feat/dedupe-default-node-bun branch September 29, 2026 14:27
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.

4 participants