As implementing Sentry sdk in both android and ios device, we wanted to make sure to implement same way in both os.
There were some difference in android/iOS sentry interface but one thing I hoped to be added is "isCrashed" property.
As an ios developer who wanted to distinguish crash event and normal event at beforeSend closure, I tried to find flag to whether event is crash event and I was able to find only at android sdk.
After that I was started to think what's the difference between event.logLevel fatal and isCrashed value
I planned to use loglevel fatal in ios, and isCrahsed in android but it seems bit wrong for determine crash event.
After getting answer from sentry team about this question and I understood clearly.
However if there is "isCrahsed" in sentry-cocoa too, it would be much clear for this usecase.
Solution Brainstorm
- (BOOL)isCrash
{
for (SentryException *exception in self.exceptions) {
if (exception.mechanism != nil) {
return YES;
}
}
return NO;
}
Problem Statement
As implementing Sentry sdk in both android and ios device, we wanted to make sure to implement same way in both os.
There were some difference in android/iOS sentry interface but one thing I hoped to be added is "isCrashed" property.
As an ios developer who wanted to distinguish crash event and normal event at beforeSend closure, I tried to find flag to whether event is crash event and I was able to find only at android sdk.
After that I was started to think what's the difference between event.logLevel fatal and isCrashed value I planned to use loglevel fatal in ios, and isCrahsed in android but it seems bit wrong for determine crash event. After getting answer from sentry team about this question and I understood clearly.
However if there is "isCrahsed" in sentry-cocoa too, it would be much clear for this usecase.
Solution Brainstorm
Are you willing to submit a PR?
No response