firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

How to control the switch of ANR collection online

Open iamskullking opened this issue 2 years ago • 6 comments

What feature would you like to see?

sdk in my project: com.google.firebase:firebase-crashlytics:18.2.4

our needs: We want to control whether we want to collect ANR events, But we didn't find that there is such a function in the sdk, We would like to know if there are some configurations or methods that can support our needs now?

what we found: image The sdk will obtain a configuration file from the Internet. Is it possible to modify this file?

iamskullking avatar Aug 26 '22 12:08 iamskullking

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 26 '22 12:08 google-oss-bot

@argzdev Hi, I would like to ask if there is a way to do it now

iamskullking avatar Aug 30 '22 06:08 iamskullking

Hi @iamskullking, thanks for filing. There's currently no way to control collection for ANR events. You can only enable/disable Crashlytics as a whole by disabling automatic reporting and sending data when you choose to in your code. Here's the link to our documentations.

I've marked this as a feature request, so our engineers can take a look when they have the time. I can't promise any timeline for this. If others find this feature useful, adding an emoji thumbs up on the post can help our engineers prioritize adding this to the roadmap.

argzdev avatar Aug 30 '22 09:08 argzdev

@argzdev ok, thanks a lot for your help :)

iamskullking avatar Aug 30 '22 12:08 iamskullking

@iamskullking, sure, no problem! :)

argzdev avatar Aug 30 '22 12:08 argzdev

@iamskullking To help us evaluate this feature request, can you elaborate on why you'd like to enable/disable ANRs? That is, what is the benefit of turning off ANR collection? Follow up question: Does it matter if it can be turned on/off at runtime vs build time?

mrichards avatar Sep 02 '22 14:09 mrichards