fix(rum): report APP_FREEZE with error.category ANR instead of App Hang - #25
Merged
Conversation
HarmonyOS APP_FREEZE is the system watchdog's application-not-responding verdict: judged by the OS, delivered on the next launch, carrying a diagnostic snapshot. That is the same mechanism family as an Android ANR, not a self-sampled in-process hang, so freezes now carry error.category: "ANR" for consistent cross-platform aggregation. is_crash semantics are unchanged.
This was referenced Aug 18, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
App freezes captured via hiAppEvent
APP_FREEZEwere reported witherror.category: "App Hang". They now carryerror.category: "ANR".is_crashsemantics are unchanged, and crashes still report"Exception".Why
A HarmonyOS
APP_FREEZEis the system watchdog's application-not-responding verdict: judged by the OS (thread block, input block, lifecycle timeout), delivered on the next launch, carrying a diagnostic snapshot. That is the same mechanism family as an Android ANR. "App Hang" describes a different thing — a hang the SDK samples itself in-process (the iOS model), which this SDK does not do. Categorizing freezes as ANR groups them with their Android counterparts for cross-platform aggregation.Changes
RumFeature.crashAttributes:crash_kind: 'freeze'maps toANR🤖 Generated with Claude Code