Tweak Sentry config

This commit is contained in:
Shadowfacts 2022-10-31 14:23:28 -04:00
parent 4857b507b1
commit 95f9fad673
1 changed files with 7 additions and 2 deletions

View File

@ -64,15 +64,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
options.dsn = "https://\(dsn)"
options.enableSwizzling = false
options.enableAutoSessionTracking = false
// required to support releases/release health
options.enableAutoSessionTracking = true
options.enableOutOfMemoryTracking = false
options.enableAutoPerformanceTracking = false
options.enableNetworkTracking = false
options.enableAppHangTracking = false
options.enableCoreDataTracking = false
// we don't care about events like battery, keyboard show/hide
options.enableAutoBreadcrumbTracking = false
options.beforeSend = { event in
Preferences.shared.reportErrorsAutomatically ? event : nil
// just no, why would anyone need this information
event.context?.removeValue(forKey: "culture")
return Preferences.shared.reportErrorsAutomatically ? event : nil
}
}
}