Issue
The default minimum amount of time an app can be unresponsive before it is classified as hanging (2 seconds) does not suit me, and I'd like to adjust it.
Applies To
- All SaaS customers
- Error Monitoring
- Cocoa SDK
- React Native SDK
Resolution
You can adjust the timeout by setting the appHangTimeoutInterval in the SDK init block, as follows.
For React Native:
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: 'DSN',
appHangTimeoutInterval: 1,
});
For Cocoa:
import Sentry
SentrySDK.start { options in
options.dsn = "https://05b28b635e8d415ca5ea4415b785d271@o1.ingest.us.sentry.io/155735"
options.appHangTimeoutInterval = 1
}