You can use the below API to set the stack trace mode you want to capture when reporting an error.
if let nonFatal = CrashReporting.error(error) {
nonFatal.stackTraceMode = .callerThreadOnly
nonFatal.report()
}LCQNonFatalError *nonFatal = [LCQCrashReporting error:error];
nonFatal.stackTraceMode = LCQNonFatalStackTraceModeCallerThreadOnlyBelow are the different modes available:
.full //default
.callerThreadOnlyLCQNonFatalStackTraceModeFull //default
LCQNonFatalStackTraceModeCallerThreadOnly