HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Set Stack Trace Mode

You can use the below API to set the stack trace mode you want to capture.

if let nonFatal = CrashReporting.error(error) {
    nonFatal.stackTraceMode = .callerThreadOnly 
    nonFatal.report()
}
IBGNonFatalError *nonFatal = [IBGCrashReporting error:error];
nonFatal.stackTraceMode = IBGNonFatalStackTraceModeCallerThreadOnly

Below are the different modes available:

.full //default
.callerThreadOnly
IBGNonFatalStackTraceModeFull //default
IBGNonFatalStackTraceModeCallerThreadOnly