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
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/configuration/app-hangs.mdx
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,3 +184,48 @@ SentrySDK.start { options in
184
184
options.enableReportNonFullyBlockingAppHangs=NO;
185
185
}];
186
186
```
187
+
188
+
## App Hang Rate
189
+
190
+
<Alert level="info">
191
+
192
+
The SDK supports App Hang Rate calculation starting with version 8.50.0. Additionally, you have to enable App Hangs V2 via `options.enableAppHangTrackingV2 = true` in your SDK configuration.
193
+
194
+
</Alert>
195
+
196
+
App hangs occur when the main UI thread of an application becomes unresponsive. When configured, Sentry's Apple SDK reports app hang events, and Sentry calculates an App Hang Rate based on these events and user sessions.
197
+
198
+
App Hang Rate is the percentage of unique users who have experienced a **Fatal App Hang** during the specified time period.
199
+
200
+
<Alert level="info">
201
+
202
+
The App Hang Rate in Sentry only accounts for **Fatal App Hangs** - app hangs that lead to your app being terminated, either by the user or the OS watchdog. Non-fatal app hangs are captured as events but do not contribute to the App Hang Rate calculation.
203
+
204
+
</Alert>
205
+
206
+
### Fatal App Hangs
207
+
208
+
Fatal app hangs are the most critical type of app hang because they result in app termination and directly impact user experience. These occur when:
209
+
210
+
- The user manually force-quits the app during a hang
211
+
- The system watchdog terminates the app due to unresponsiveness
212
+
213
+
Fatal app hangs are distinguished by their `exception.type`:
214
+
215
+
- `Fatal App Hang Fully Blocked`: A completely blocking app hang that leads to termination
216
+
- `Fatal App Hang Non Fully Blocked`: A partially blocking app hang that leads to termination
217
+
218
+
### Viewing Your App Hang Rate
219
+
220
+
To see your App Hang Rate in Sentry:
221
+
222
+
1. Go to the **Projects** page
223
+
2. Click on your Apple project
224
+
3. Look for the "App Hang Rate" card in the "Project Details" section
225
+
4. Click "View Issues" to see a list of app hang issues that were created in the selected timeframe and environment
226
+
227
+
The App Hang Rate card displays the percentage of users affected by fatal app hangs, helping you understand the impact on your user base and prioritize performance improvements.
228
+
229
+

230
+
231
+
Since App Hang Rate only includes fatal app hangs, it represents the most severe hangs that directly affect user retention and app store ratings.
0 commit comments