diff --git a/Tusker/AppDelegate.swift b/Tusker/AppDelegate.swift index 30c461c2..4c6bc69d 100644 --- a/Tusker/AppDelegate.swift +++ b/Tusker/AppDelegate.swift @@ -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 } } }