I’ve a utility technique for logging varied non-fatal errors in my venture. On this technique I additionally ship the error to Crashlytics by its report()
technique, however when Crashlytics, all errors are grouped collectively into one occasion, beacause the final information within the stacktrace is line x
of my UtilityClass
(the place Crashlytics.crashlytics().report(error: error)
is named).
Can I take away from the stacktrace the reference concerning the final technique earlier than calling Crashlytics.crashlytics().report(error: error)
? And how you can do it?
There are different methods?
I am on the lookout for a option to inform Crashlytics that every one my non-fatal occasions should not coming from the identical line of code, however from the road that calls that line, so that every one the occasions should not grouped togheter.