Closed edorphy closed 10 months ago
@edorphy this all makes total sense, I would love to review a PR for that!
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
@AvdLee I think that the MXCrashDiagnostic's loggable representation would be much more meaningful if the exception type, code, and signal were converted from their integer form to human readable type.
This is how Apple represents them in crash files so it would align with system design and system generated crash reports.
References: https://developer.apple.com/documentation/xcode/examining-the-fields-in-a-crash-report#Exception-information https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report
I plan to do this in my fork and would be happy to contribute a PR for this if you feel it fits the intent of the metric kit loggable representations.
Technically we know that the int32Value's will not be nil from the documentation, but they're an NSNumber so doing some 'guarantee' nil checking is necessary for robustness.