Fix log and analytics bugs

This commit is contained in:
problematicconsumer
2023-10-03 21:12:14 +03:30
parent ba071643ce
commit 8f15022443
16 changed files with 86 additions and 57 deletions

View File

@@ -67,12 +67,7 @@ Future<void> lazyBootstrap(
options.tracesSampleRate = 0.25;
options.enableUserInteractionTracing = true;
options.addIntegration(sentryLogger);
options.beforeSend = (event, {hint}) {
return switch (event.throwable) {
ExpectedException _ => null,
_ => event,
};
};
options.beforeSend = sentryBeforeSend;
options.logger = (level, message, {exception, logger, stackTrace}) {
if (level == SentryLevel.fatal) {
_logger.debug(message);