From 5898db8380e58065660a09100621668ac765289f Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 8 Jun 2026 11:30:47 +0200 Subject: [PATCH 1/2] docs(godot): Document Android ANR detection options Document the new Android-specific ANR (Application Not Responding) detection options under SentryOptions.android: enable_anr_detection, anr_timeout_interval_ms, and attach_anr_thread_dump. ANR detection is now separate from app hang tracking, which applies to iOS and macOS only. Update the app_hang_tracking note to reflect this and point Android users to the new options. Refs getsentry/sentry-godot#749 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../platforms/godot/configuration/options.mdx | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/docs/platforms/godot/configuration/options.mdx b/docs/platforms/godot/configuration/options.mdx index 8c2acb0f7cf9af..8acf7bd71c8790 100644 --- a/docs/platforms/godot/configuration/options.mdx +++ b/docs/platforms/godot/configuration/options.mdx @@ -134,7 +134,7 @@ If `true`, enables automatic detection and reporting of application hangs. The S -This feature is only supported on Android, iOS, and macOS platforms. +This feature applies to iOS and macOS only. On Android, ANR (Application Not Responding) detection is configured separately — see [`android.enable_anr_detection`](#android.enable_anr_detection). @@ -146,6 +146,36 @@ Specifies the timeout duration in seconds after which the application is conside +## Android Options + +These options configure Android-specific behavior, such as ANR (Application Not Responding) detection. Set them programmatically through `options.android`, or in the **Project Settings** under **Sentry > Android > Application Not Responding**. + + + +If `true`, detects and reports ANR (Application Not Responding) errors. The SDK monitors the main thread for unresponsiveness and reports an event when an ANR occurs. + +Android 11 and later use the system-based V2 implementation, while earlier versions use the watchdog-based V1 implementation. See `android.anr_timeout_interval_ms` and `android.attach_anr_thread_dump` for the options specific to each implementation. On Apple platforms, `app_hang_tracking` configures the equivalent app hang detection. + +To learn more, see the [Application Not Responding documentation](/platforms/android/configuration/app-not-respond/). + + + + + +Specifies how long, in milliseconds, the main thread must stay blocked before the SDK reports an ANR. + +Applies only when `android.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 `true`, 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. + +Applies only when `android.enable_anr_detection` is enabled, and only to the V2 implementation used on Android 11 and later. + + + ## GUI-only Options These options are only available in the **Project Settings** window. From d66d6abd5f8b32d2f48dd5bbfeb808708f177109 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 8 Jun 2026 11:36:06 +0200 Subject: [PATCH 2/2] Move section further --- .../platforms/godot/configuration/options.mdx | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/platforms/godot/configuration/options.mdx b/docs/platforms/godot/configuration/options.mdx index 8acf7bd71c8790..bb700c7449694a 100644 --- a/docs/platforms/godot/configuration/options.mdx +++ b/docs/platforms/godot/configuration/options.mdx @@ -146,36 +146,6 @@ Specifies the timeout duration in seconds after which the application is conside -## Android Options - -These options configure Android-specific behavior, such as ANR (Application Not Responding) detection. Set them programmatically through `options.android`, or in the **Project Settings** under **Sentry > Android > Application Not Responding**. - - - -If `true`, detects and reports ANR (Application Not Responding) errors. The SDK monitors the main thread for unresponsiveness and reports an event when an ANR occurs. - -Android 11 and later use the system-based V2 implementation, while earlier versions use the watchdog-based V1 implementation. See `android.anr_timeout_interval_ms` and `android.attach_anr_thread_dump` for the options specific to each implementation. On Apple platforms, `app_hang_tracking` configures the equivalent app hang detection. - -To learn more, see the [Application Not Responding documentation](/platforms/android/configuration/app-not-respond/). - - - - - -Specifies how long, in milliseconds, the main thread must stay blocked before the SDK reports an ANR. - -Applies only when `android.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 `true`, 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. - -Applies only when `android.enable_anr_detection` is enabled, and only to the V2 implementation used on Android 11 and later. - - - ## GUI-only Options These options are only available in the **Project Settings** window. @@ -297,6 +267,36 @@ This option contains multiple properties that govern the behavior of throttling. +## Android Options + +These options configure Android-specific behavior, such as ANR (Application Not Responding) detection. Set them programmatically through `options.android`, or in the **Project Settings** under **Sentry > Android > Application Not Responding**. + + + +If `true`, detects and reports ANR (Application Not Responding) errors. The SDK monitors the main thread for unresponsiveness and reports an event when an ANR occurs. + +Android 11 and later use the system-based V2 implementation, while earlier versions use the watchdog-based V1 implementation. See `android.anr_timeout_interval_ms` and `android.attach_anr_thread_dump` for the options specific to each implementation. On Apple platforms, `app_hang_tracking` configures the equivalent app hang detection. + +To learn more, see the [Application Not Responding documentation](/platforms/android/configuration/app-not-respond/). + + + + + +Specifies how long, in milliseconds, the main thread must stay blocked before the SDK reports an ANR. + +Applies only when `android.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 `true`, 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. + +Applies only when `android.enable_anr_detection` is enabled, and only to the V2 implementation used on Android 11 and later. + + + ## Hooks These options can be used to hook the SDK in various ways to customize the reporting of events.