Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions App/Support/CrashReporting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ final class CrashReporting {

/// Crashes the app, to try crash reports out. Only TestFlight and debug builds offer it, and
/// it crashes under Xcode's debugger without a report.
///
/// The report is tagged `crash_type:forced`, as the desktop Clementine tags crashes made with
/// `--crash`, so it can be told apart from real crashes in Sentry. The SDK saves the scope with
/// its report of the crash, so the tag is on the event it makes from it on the next start.
func crash() {
SentrySDK.configureScope { scope in
scope.setTag(value: "forced", key: "crash_type")
}
SentrySDK.crash()
}

Expand Down
Loading