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: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
## Unreleased
4
4
5
+
### Breaking changes
6
+
7
+
- Add Android-specific ANR (Application Not Responding) detection options ([#749](https://github.com/getsentry/sentry-godot/pull/749))
8
+
- ANR detection is now enabled by default; set `SentryOptions.android.enable_anr_detection` to `false` to opt out
9
+
- ANR detection is now separate from the App Hang Tracking options (`app_hang_tracking`, `app_hang_timeout_sec`), which now apply to Apple platforms only
10
+
- Configure these through `SentryOptions.android`, or in the **Project Settings** under **Sentry > Android > Application Not Responding**
11
+
5
12
### Dependencies
6
13
7
14
- Bump Sentry JavaScript from v10.55.0 to v10.57.0 ([#743](https://github.com/getsentry/sentry-godot/pull/743), [#754](https://github.com/getsentry/sentry-godot/pull/754))
Contains configuration options that apply only when the project runs on Android, such as ANR (Application Not Responding) detection. Access this configuration through [member SentryOptions.android].
Specifies how long, in milliseconds, the main thread must stay blocked before the SDK reports an ANR.
15
+
Applies only when [member enable_anr_detection] is enabled, and only to the V1 implementation used on Android versions before 11. On Android 11 and later, the operating system determines when the application stops responding, so this value has no effect.
If [code]true[/code], attaches the operating system's thread dump to the ANR event as a plain-text attachment, adding detail for investigating where the application became unresponsive.
19
+
Applies only when [member enable_anr_detection] is enabled, and only to the V2 implementation used on Android 11 and later.
If [code]true[/code], detects and reports ANR (Application Not Responding) errors. The SDK monitors the main thread for unresponsiveness and reports an event when an ANR occurs.
23
+
Android 11 and later use the system-based V2 implementation, while earlier versions use the watchdog-based V1 implementation. See [member anr_timeout_interval_ms] and [member attach_anr_thread_dump] for options specific to each implementation. On Apple platforms, [member SentryOptions.app_hang_tracking] configures the equivalent app hang detection.
24
+
To learn more, visit [url=https://docs.sentry.io/platforms/android/configuration/app-not-respond/]Application Not Responding documentation[/url].
Specifies the timeout duration in seconds after which the application is considered to have hanged. When [member app_hang_tracking] is enabled, if the main thread is blocked for longer than this duration, it will be reported as an application hang event to Sentry.
If [code]true[/code], enables automatic detection and reporting of application hangs. The SDK will monitor the main thread and report hang events when it becomes unresponsive for longer than the duration specified in [member app_hang_timeout_sec]. This helps identify performance issues where the application becomes frozen or unresponsive.
21
-
[b]Note:[/b] This feature is only supported on Android, iOS, and macOS platforms.
24
+
[b]Note:[/b] This feature applies to iOS and macOS only. On Android, [member android] configures ANR (Application Not Responding) detection instead.
/// Contains configuration options that apply only when the project runs on Android, such as ANR (Application Not
241
+
/// Responding) detection. Access this configuration through <see cref="SentryGodotOptions.Android"/>.
242
+
/// </summary>
243
+
/// <seealso cref="SentryGodotOptions"/>
244
+
publicsealedclassSentryAndroidOptions
245
+
{
246
+
/// <summary>
247
+
/// Enables detection and reporting of ANR (Application Not Responding) errors. The SDK monitors the main thread
248
+
/// for unresponsiveness and reports an event when an ANR occurs.
249
+
/// </summary>
250
+
/// <remarks>
251
+
/// Android 11 and later use the system-based V2 implementation, while earlier versions use the watchdog-based V1
252
+
/// implementation. See <see cref="AnrTimeoutInterval"/> and <see cref="AttachAnrThreadDump"/> for options specific
253
+
/// to each implementation. On Apple platforms, <see cref="SentryGodotOptions.AppHangTracking"/> configures the
254
+
/// equivalent app hang detection.
255
+
/// To learn more, visit <see href="https://docs.sentry.io/platforms/android/configuration/app-not-respond/">Application Not Responding documentation</see>.
256
+
/// </remarks>
257
+
publicboolEnableAnrDetection{get;set;}=true;
258
+
259
+
/// <summary>
260
+
/// Specifies how long the main thread must stay blocked before the SDK reports an ANR.
261
+
/// </summary>
262
+
/// <remarks>
263
+
/// Applies only when <see cref="EnableAnrDetection"/> is enabled, and only to the V1 implementation used on Android
264
+
/// versions before 11. On Android 11 and later, the operating system determines when the application stops responding, so
0 commit comments