Skip to content
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

Capture transaction on crash #4427

Open
krystofwoldrich opened this issue Jan 8, 2025 · 1 comment
Open

Capture transaction on crash #4427

krystofwoldrich opened this issue Jan 8, 2025 · 1 comment

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 8, 2025

Description

The React Native SDK does not capture unfinished transactions on application crash. Because performance is handled in JS we need to ensure transactions are saved in the following cases:

  • JS Unhandled Error End and save unfinished JS transaction in global error handler (currently we only handle errors).
  • iOS Crash End and save unfinished JS transaction when native signal handler is triggered.
  • Android JVM Crash End and save unfinished JS transaction when JVM DefaultUncaughtExceptionHandler triggered.
  • Android Native Crash End and save unfinished JS transaction when native signal handler is triggered.

Context for calling JS from native during exception handling. https://github.com/a7ul/react-native-exception-handler

sentry-java implementation https://github.com/getsentry/sentry-java/blob/94071dac205bde6a3126cae0a3e35b559e5e915d/sentry/src/main/java/io/sentry/UncaughtExceptionHandlerIntegration.java#L109-L113

sentry-cocoa implementation (not by default) https://github.com/getsentry/sentry-cocoa/blob/0d38adaabb4ae206e7237ec24647751558142548/Sources/Sentry/SentryCrashIntegration.m#L41-L49 (flag https://github.com/getsentry/sentry-cocoa/blob/0d38adaabb4ae206e7237ec24647751558142548/Sources/Sentry/SentryCrashIntegration.m#L127-L129)

@krystofwoldrich
Copy link
Member Author

Priority for JS Unhandled Error

@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant