File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
sentry-android-core/src/main/java/io/sentry/android/core
sentry/src/main/java/io/sentry/hints Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,8 @@ private final class AnrHintEnricher implements HintEnricher {
682682
683683 @ Override
684684 public boolean supports (@ NotNull Object hint ) {
685- // TODO: not sure about this. all tests are written with AbnormalExit, but enrichment changes
686- // are ANR-specific. I called it AnrHintEnricher because that is what it does, but it
687- // actually triggers on AbnormalExit. Let me know what makes most sense.
685+ // While this is specifically an ANR enricher we discriminate enrichment application
686+ // on the broader AbnormalExit hints for now.
688687 return hint instanceof AbnormalExit ;
689688 }
690689
Original file line number Diff line number Diff line change 22
33import org .jetbrains .annotations .Nullable ;
44
5- /** Marker interface for Sessions experiencing abnormal status */
5+ /**
6+ * Marker interface for Sessions experiencing abnormal status.
7+ *
8+ * <p><b>Note:</b> While this interface applies to the broad category of abnormal exits (meaning any
9+ * exits that weren't classified as normal terminations or crashes) it currently is exclusively used
10+ * as a hint marker for Android ANRs (both watchdog and ApplicationExitInfo based). If additional
11+ * categories of abnormal exits were introduced, all instances of discriminator code (`instanceof
12+ * AbnormalExit`) should be carefully reviewed for ANR specifics accidentally being applied.
13+ */
614public interface AbnormalExit {
715
816 /** What was the mechanism this Session has abnormal'ed with */
You can’t perform that action at this time.
0 commit comments