From 2e9fc39c57c3e4dbe9da7d76b24b6697c0d23817 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Sun, 17 Nov 2024 20:24:22 -0500 Subject: [PATCH] clean up sentry options and disable unused things --- lib/main.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index cdfa4944..1e9f4d80 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -102,6 +102,7 @@ Future main() async { DynamicConfigInfo dynamicConfigInfo = await getDynamicConfigInfo(); mainLogger.info("Detected Environment: $environment"); + //initialize the foreground service library if (Platform.isAndroid) { FlutterForegroundTask.initCommunicationPort(); } @@ -116,13 +117,10 @@ Future main() async { ..environment = environment ..tracesSampleRate = dynamicConfigInfo.sentryTraces ..profilesSampleRate = dynamicConfigInfo.sentryProfiles - ..attachThreads = true ..beforeSend = beforeSend ..reportPackages = false - ..attachStacktrace = true ..attachScreenshot = true - ..screenshotQuality = low - ..attachViewHierarchy = false + ..screenshotQuality = SentryScreenshotQuality.low ..experimental.replay.sessionSampleRate = dynamicConfigInfo.sentryReplay; }, // Init your App.