From bb18b075e642f6764f5c28d6539b4783309afddf Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 10 Mar 2025 17:16:20 +0100 Subject: [PATCH] updated sentry options --- .../Analytics/SentryMonitoringClient.swift | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Riot/Modules/Analytics/SentryMonitoringClient.swift b/Riot/Modules/Analytics/SentryMonitoringClient.swift index 28e7169cf..7bb52f048 100644 --- a/Riot/Modules/Analytics/SentryMonitoringClient.swift +++ b/Riot/Modules/Analytics/SentryMonitoringClient.swift @@ -28,9 +28,25 @@ struct SentryMonitoringClient { options.sampleRate = 0.1 options.tracesSampleRate = 0.1 - // Disable unnecessary network tracking + // Sentry swizzling shows up quite often as the heaviest stack trace when profiling + // We don't need any of the features it powers (see docs) + options.enableSwizzling = false + + // WatchdogTermination is currently the top issue but we've had zero complaints + // so it might very well just all be false positives + options.enableWatchdogTerminationTracking = false + + // Disabled as it seems to report a lot of false positives + options.enableAppHangTracking = false + + // Most of the network requests are made Rust side, this is useless options.enableNetworkBreadcrumbs = false - options.enableNetworkTracking = false + + // Doesn't seem to work at all well with SwiftUI + options.enableAutoBreadcrumbTracking = false + + // Experimental. Stitches stack traces of asynchronous code together + options.swiftAsyncStacktraces = true options.beforeSend = { event in // Use the actual error message as issue fingerprint