From 95f9fad6739585f07dc99c90690613334f9726a2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 31 Oct 2022 14:23:28 -0400 Subject: [PATCH] Tweak Sentry config --- Tusker/AppDelegate.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 } } }