Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to effectively group non fatal exceptions in Crashlytics (Fabrics)?

We are using Crashlytics in our app as the crash reporting tool. For Android native crashes, it's working fine and grouping the crashes correctly. Our app also has few components in react-native. For the crashes which occur in these components, we catch them and then log them to Crashlytics as non-fatal exceptions.

public class PlatformNativeModuleCallExceptionhandler implements 
NativeModuleCallExceptionHandler {
@Override
public void handleException(Exception e) {
    try {
        .
        .
        .
        Crashlytics.logException(new Exception(exceptionString));
    } catch (Exception ex) {}
}

Crashes are getting logged in Crashlytics dashboard, but it's showing all the crashes inside a single tab. These might be different crashes of the same or different react-native components.

enter image description here

Due to this we are not able to find out the instances of a particular crash. Need to manually go through each instance of the crash.

I guess it takes the name of the class where exception gets created, in this case PlatformNativeModuleCallExceptionHandler. I tried creating my own custom exception class but that also did not help.

Does anybody know how we can group the non fatal exceptions better here? All the similar crashes should be grouped together with their total instances.

like image 203
Harminder Singh Avatar asked Dec 05 '17 13:12

Harminder Singh


People also ask

What is non-fatal event in Crashlytics?

In addition to automatically reporting your app's crashes, Crashlytics lets you record non-fatal exceptions and sends them to you the next time your app launches. Note: Crashlytics only stores the most recent eight exceptions in a given app session.

What are non-fatal exceptions?

Non-fatal exceptions captured by your app do not cause crashes but usually indicate certain bugs in code. AppGallery Connect provides a mechanism for recording non-fatal exceptions, helping you monitor these exceptions and improve your code quality.

What is fabric Crashlytics?

Android Crash Reporting Tools Fabric - Crashlytics Fabric is a modular mobile platform that provides useful kits you can mix to build your application. Crashlytics is a crash and issue reporting tool provided by Fabric that allows you to track and monitor your applications in detail.

How to see Crashlytics logs in Firebase?

Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.


1 Answers

Crashlytics uses the method and crash line number to group crashes, so if you have an exception handler method for all of your non-fatals, they'll be grouped together. There isn't currently a workaround for this.

like image 66
Alexizamerican Avatar answered Sep 30 '22 12:09

Alexizamerican