feat(effect): Capture errors through the Effect v4 ErrorReporter API - #24151
Open
JPeer264 wants to merge 2 commits into
Open
feat(effect): Capture errors through the Effect v4 ErrorReporter API#24151JPeer264 wants to merge 2 commits into
JPeer264 wants to merge 2 commits into
Conversation
On Effect v4, `Sentry.effectLayer` now registers a Sentry `ErrorReporter`. Failures that pass through `Effect.withErrorReporting`, `ErrorReporter.report` or the built-in HTTP and RPC reporting boundaries are captured automatically. The `ErrorReporter.ignore`, `severity` and `attributes` annotations are respected. Effect v3 has no `ErrorReporter` module, so the layer stays empty there. The server SDK now enables the `contextLines` and `linkedErrors` integrations by default, so captured errors carry source context and their `cause` chain. No other Node default integration is enabled. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
JPeer264
requested review from
nicohrubec and
s1gr1d
and removed request for
a team
September 7, 2026 09:42
Contributor
size-limit report 📦
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #20494
On Effect v4,
Sentry.effectLayernow registers a SentryErrorReporter. Failures that pass throughEffect.withErrorReporting,ErrorReporter.reportor the built-in HTTP and RPC reporting boundaries are captured automatically. TheErrorReporter.ignore,severityandattributesannotations are respected. Effect v3 has noErrorReportermodule, so the layer stays empty there.The server SDK now enables the
contextLinesandlinkedErrorsintegrations by default, so captured errors carry source context and theircausechain. No other Node default integration is enabled.