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
Currently we use activityManager.getHistoricalProcessExitReasons() to obtain the previous session's ApplicationExitInfo and log an "App Termination" event that would be associated with such session.
According to their documentation ApplicationExitInfo.getTraceInputStream() returns extra information in the form of traces for REASON_ANR or REASON_CRASH_NATIVE (starting with API level 31). We should extract this information when available and attach it as one of the metadata fields sent in the event. See: https://developer.android.com/ndk/guides/debug
murki
changed the title
Enrich instrumentation for App Terminations with ANR and CRASH_NATIVE info
Enrich instrumentation data for App Terminations with ANR and CRASH_NATIVE reasons
Oct 29, 2024
Currently we use
activityManager.getHistoricalProcessExitReasons()
to obtain the previous session'sApplicationExitInfo
and log an "App Termination" event that would be associated with such session.According to their documentation
ApplicationExitInfo.getTraceInputStream()
returns extra information in the form of traces forREASON_ANR
orREASON_CRASH_NATIVE
(starting with API level 31). We should extract this information when available and attach it as one of the metadata fields sent in the event. See: https://developer.android.com/ndk/guides/debugMost of the current logic lives in this class
capture-sdk/platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/events/lifecycle/AppExitLogger.kt
Line 153 in f99fb64
The text was updated successfully, but these errors were encountered: