forked from shadowfacts/Tusker
Tweak Sentry config
This commit is contained in:
parent
4857b507b1
commit
95f9fad673
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue