-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.61.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
When Sentry error boundary and capture console are both enable in the SDK and an error happens in the wrapped component, the capture console integration will capture the error before the Error boundary.
As a result the event in Sentry is missing the component stack (added by Sentry error boundary) and all actions performed in beforeCapture (in this case, adding a tag).
Repro as provided my affected user:
sentry-errorboundary-consoleintegration.zip
- Add DSN to app.js
- Run
npm install
- Run
npm build
- Run
server -s build
- Open localhost:3000
Expected Result
Capture console does not affect the error boundary configuration and the resulting event in sentry has the information added by the error boundary.
Removing the capture console integration "solves" the issue.
Actual Result
The event is captured by the integration, without additional information. And the event captures by the error boundary is dropped:
Not capturing exception because it's already been captured.