-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception capture context is overwritten by native scope sync #2146
Comments
I believe the right solution here would be to align the way how we capture events, which is what iOS does, on RN, we call the native bridge to get all device context and assemble the event on RN with already all the context, so this won't need to be done on Android, after the envelope is written to the disk, and because of that, breadcrumbs won't be duplicated. |
I agree with this solution |
@krystofwoldrich have you tested that this is fixed after #3170? |
Although we are not removing the breadcrumbs anymore, the Device context integration overwrites the sentry-react-native/src/js/integrations/devicecontext.ts Lines 87 to 93 in 2c394d1
|
The breadcrumb origin and fixing the breadcrumbs merging, which should not rely on using purely breadcrumbs from the native layer, will be needed also for supporting Expo DOM Components. |
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
e.g: Sentry React Native 3.3.3
Steps to Reproduce
Sample code:
Expected Result
The exception captured with the breadcrumb
error with breadcrumbs
Actual Result
Breadcrumb got removed
https://sentry.io/organizations/sentry-sdks/issues/3114951206/?project=5428561&query=is%3Aunresolved&statsPeriod=1h
sentry-react-native/src/js/wrapper.ts
Lines 108 to 110 in a085ec4
This code doesnt differentiate from synced breadcrumbs and local breadcrumbs, resulting on local breadcrumbs getting removed when setting an isolated scope/context.
The text was updated successfully, but these errors were encountered: