sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Report Fatal App Hangs

Open philipphofmann opened this issue 1 year ago • 0 comments

Description

When an app hang leads to a watchdog termination, we can report this as a fatal app hang. When the SDK detects a fully blocking app hang, it needs to store the app hang to disk and wait for the app to recover from the app hang. When the app doesn't recover, the SDK must send the app hang as a fatal on the next app launch. When the app recovers from the app hang, then it must send it as a fully blocking app hang. The downside of this approach is that app hangs will be reported a bit delayed, which is acceptable.

This issue is a prerequisite to https://github.com/getsentry/sentry-cocoa/issues/3319, because the app hang rate only considers fatal app hangs.

philipphofmann avatar Aug 08 '24 13:08 philipphofmann