-
-
Notifications
You must be signed in to change notification settings - Fork 32
High ANR report rate with v2.x #406
Comments
hey @tobi512 thanks for raising this. Some info before getting to the point: #388 changes the ANR timeout to 5s by default, released on this version https://github.com/getsentry/sentry-android/releases/tag/2.1.0 you can also set a custom timeout adding this to the Manifest: // 10s you can also disable the ANR feature as well: ANR is enabled by default on We detect ANRs in a different way comparing to Google Vitals. We detect ANRs on this way https://github.com/SalomonBrys/ANR-WatchDog That said, we'll investigate if there's any bug/problem with Android 6, but not only, of course. |
Hi @marandaneto, Customizing the ANR timeout sounds good, we might give that a try or update to the latest version of the SDK.
Since the dialog of ANRs only has two buttons ("wait" and "close app"), you're probably talking about the general "automatically share usage and diagnostics data" that is described on https://support.google.com/googleplay/android-developer/answer/6083203?hl=en, correct? Anyways, thanks for investigating. Maybe it makes sense to ask the maintainers of https://github.com/SalomonBrys/ANR-WatchDog for help at some point? Cheers! |
hey @tobi512 thank you :) keep also letting us know how we can make it even better. We've done some improvements on ANR detection feature and we'd love to get feedback on real and large Apps like yours. Please upgrade the SDK to https://github.com/getsentry/sentry-android/releases/tag/2.1.2 and let us know how it goes. Feel free to reopen or raise a new issue if you find anything. Cheers. |
Thanks for the quick release, I'll let you know if anything changes! |
Hi there,
we're running sentry-android v2.0.3 in production since quite a while now and everything seems fine now after you fixed #341.
However, we see a lot of ANRs (which is a new feature since v2.x as far as I know, right?) that we don't see in the Play Console. At first we thought that all those reported ANRs are real and tried to fix some (with no success), but right now we're not so sure about this anymore, which is why i'm opening this issue.
Speaking numbers, we got ~18k (yes, 18 thousand) ANR reports in Sentry till now, while the Play Console only shows around 200 if I sum them up by hand (all app versions, all OS versions in the last 60 days) and also displays "100% daily sessions without ANRs" on the dashboard. Interesting about the ANRs from Sentry is that most of them are coming from devices with Android 6.x.
I see that you use ANR-WatchDog with a threshold of 4000ms for detection while Google has 5s as their threshold (according to https://developer.android.com/topic/performance/vitals/anr) but I really don't think that this difference of 1s is responsible for all the ANR reports that we get from Sentry compare to Google.
The question is now, where are all these reports coming from and why, since we never really see our app hanging during testing nor did we get customer reports about it (with currently over 1 million active installs).
Regards,
Tobias
The text was updated successfully, but these errors were encountered: