Set Stack Trace Mode for Exceptions

You can use the below API to set the stack trace mode you want to capture when reporting exceptions

if let nonFatal = CrashReporting.report(exception) {
    nonFatal.stackTraceMode = .callerThreadOnly 
    nonFatal.report()
}

Below are the different modes available:

.full //default
.callerThreadOnly

Last updated