Track all errors in Sentry

This commit is contained in:
Andy Uhnak
2022-08-22 10:20:36 +01:00
parent 30cb697304
commit a9d1e84252
44 changed files with 128 additions and 74 deletions

View File

@@ -32,7 +32,9 @@ struct SentryMonitoringClient {
MXLog.debug("[SentryMonitoringClient] Started")
SentrySDK.start { options in
options.dsn = Self.sentryDSN
options.tracesSampleRate = 1.0
// Collecting only 10% of all events
options.tracesSampleRate = 0.1
options.beforeSend = { event in
MXLog.debug("[SentryMonitoringClient] Issue detected: \(event)")