Skip to content

fix(effect): Report a failure once when the Sentry layer is provided twice - #26734

Merged
JPeer264 merged 1 commit into
developfrom
jp/effect-error-reporter-dedupe
Nov 25, 2026
Merged

JPeer264 merged 1 commit into
developfrom
jp/effect-error-reporter-dedupe

Conversation

@JPeer264

Copy link
Copy Markdown
Member

This makes all Sentry layers add the same ErrorReporter instance to Effect's reporters set. A failure is now captured once when the Sentry layer is provided twice.

Why

Each layer added its own reporter, so on Node a failure that is not an Error object, such as Effect.fail('message'), was sent once per provided layer. Error objects were not affected, because the SDK skips an error object that it already captured, and the browser SDK drops the copy with dedupeIntegration.

@JPeer264
JPeer264 added this pull request to stack #26733 November 22, 2026 16:33
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 3c9cb83 (PR test merge using develop at b365f05)

Against: b365f05 (develop) · base run #67784

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.54 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.6 kB - -
@sentry/browser (incl. Tracing) 53.67 kB - -
@sentry/browser (incl. Tracing Core) 40.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.67 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.57 kB - -
@sentry/browser (incl. Tracing, Replay) 93.54 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.41 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.93 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.34 kB - -
@sentry/browser (incl. Feedback) 48.4 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.17 kB - -
@sentry/browser (incl. Metrics) 31.86 kB - -
@sentry/browser (incl. Logs) 32.13 kB - -
@sentry/browser (incl. Metrics & Logs) 32.8 kB - -
@sentry/react 32.56 kB - -
@sentry/react (incl. Tracing) 56.38 kB - -
@sentry/vue 38.75 kB - -
@sentry/vue (incl. Tracing) 56.68 kB - -
@sentry/svelte 30.57 kB - -
@sentry/effect (client) 42.22 kB -0.08% -33 B 🔽
@sentry/effect (client, incl. Tracing) 54.97 kB -0.02% -7 B 🔽
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.31 kB -0.07% -43 B 🔽
@sentry/remix (Remix 3 client bundle) 59.39 kB - -
CDN Bundle 32.54 kB - -
CDN Bundle (incl. Tracing) 54.15 kB - -
CDN Bundle (incl. Logs, Metrics) 35.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.63 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.16 kB - -
CDN Bundle (incl. Tracing, Replay) 91.89 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.43 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.81 kB - -
CDN Bundle - uncompressed 94.92 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.25 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.5 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.54 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.17 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300.09 kB - -
@sentry/nextjs (client) 60.09 kB - -
@sentry/sveltekit (client) 55.03 kB - -
@sentry/core/server 45.83 kB - -
@sentry/core/browser 14.46 kB - -
@sentry/node 156.41 kB -0.01% -3 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.28 kB -0.01% -4 B 🔽
@sentry/node - without channel injection 145.33 kB +0.01% +1 B 🔺
@sentry/aws-serverless 99.92 kB -0.01% -3 B 🔽
@sentry/cloudflare (withSentry) - minified 211.93 kB - -
@sentry/cloudflare (withSentry) 491.77 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 214.88 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 237.17 kB - -

View base workflow run

@JPeer264
JPeer264 removed this pull request from stack #26733 November 23, 2026 10:37
@JPeer264
JPeer264 force-pushed the jp/effect-error-reporter-dedupe branch from 50e52c0 to 503a198 Compare November 23, 2026 13:23
@JPeer264
JPeer264 force-pushed the jp/effect-drop-name-prefixes branch from f4391a2 to e3803af Compare November 23, 2026 14:33
@JPeer264
JPeer264 force-pushed the jp/effect-error-reporter-dedupe branch from 503a198 to 382afb6 Compare November 23, 2026 14:33
@github-actions

Copy link
Copy Markdown
Contributor

One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check.

@JPeer264
JPeer264 force-pushed the jp/effect-error-reporter-dedupe branch from 382afb6 to b9c74d0 Compare November 24, 2026 07:37
@JPeer264
JPeer264 force-pushed the jp/effect-drop-name-prefixes branch from e3803af to 7c0c56b Compare November 24, 2026 07:37
Base automatically changed from jp/effect-drop-name-prefixes to develop November 24, 2026 15:38
@JPeer264 JPeer264 closed this Nov 24, 2026
@JPeer264 JPeer264 reopened this Nov 24, 2026
…twice

Every Sentry layer added its own reporter instance to Effect's reporters
set, so a failure that is not an object was captured once per provided
layer. Object errors were already deduped by the SDK core. All Sentry
layers now add the same instance, which the set holds once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JPeer264
JPeer264 force-pushed the jp/effect-error-reporter-dedupe branch from b9c74d0 to 8e4a407 Compare November 24, 2026 15:41
@JPeer264 JPeer264 self-assigned this Nov 25, 2026
@JPeer264
JPeer264 marked this pull request as ready for review November 25, 2026 06:29
@JPeer264
JPeer264 merged commit cee40e6 into develop Nov 25, 2026
57 checks passed
@JPeer264
JPeer264 deleted the jp/effect-error-reporter-dedupe branch November 25, 2026 08: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.

2 participants