Track all errors in Sentry

This commit is contained in:
Andy Uhnak
2022-08-22 10:20:36 +01:00
parent 2ebbcbd2f9
commit 74b369e3af
44 changed files with 128 additions and 74 deletions
@@ -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)")