You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c4a818a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ios): Forward experimental enableWatchdogTerminationsV2 to sentry-cocoa (#7012)
* feat(ios): Forward experimental enableWatchdogTerminationsV2 to sentry-cocoa
On sentry-cocoa 9 the watchdog termination integration uses the frame-based ANR tracker (V2). A foreground app that does not render reads as an ongoing hang, so the integration skips a watchdog termination that happens during that time, even with enableAppHangTracking off.
sentry-cocoa 9.6.0 added experimental.enableWatchdogTerminationsV2, which switches the integration to a run loop observer, but React Native apps could not set it from JS. RNSentryStart now reads _experiments.enableWatchdogTerminationsV2 and sets it through RNSentryExperimentalOptions, the same way as enableUnhandledCPPExceptionsV2. The option is iOS only and defaults to false.
Closes#6992
* docs(changelog): Add PR link for enableWatchdogTerminationsV2
Replace the PR number placeholder in the changelog entry with #7012.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,20 @@
8
8
9
9
## Unreleased
10
10
11
+
### Features
12
+
13
+
- Add the experimental `_experiments.enableWatchdogTerminationsV2` option on iOS ([#7012](https://github.com/getsentry/sentry-react-native/pull/7012))
14
+
- The default tracker reports a foreground app that does not render as an app hang, and the SDK does not report watchdog terminations (for example OOM kills) that happen during that time. The option uses a run loop observer instead.
15
+
16
+
```js
17
+
Sentry.init({
18
+
dsn:'__DSN__',
19
+
_experiments: {
20
+
enableWatchdogTerminationsV2:true,
21
+
},
22
+
});
23
+
```
24
+
11
25
### Dependencies
12
26
13
27
- Bump Android SDK from v8.62.0 to v8.63.0 ([#6990](https://github.com/getsentry/sentry-react-native/pull/6990))
* Experiment: Detects watchdog terminations (for example OOM kills) with a run loop observer instead of the frame-based ANR tracker.
638
+
*
639
+
* With the default tracker, a foreground app that does not render reads as an app hang, and the SDK does not report watchdog terminations that happen during that time.
0 commit comments