new: enable tunnel service again, add signing, msix, more log less info
This commit is contained in:
@@ -48,6 +48,8 @@ class AnalyticsController extends _$AnalyticsController with AppLogger {
|
||||
options.debug = kDebugMode;
|
||||
options.enableNativeCrashHandling = true;
|
||||
options.enableNdkScopeSync = true;
|
||||
// options.attachScreenshot = true;
|
||||
options.serverName = "";
|
||||
options.attachThreads = true;
|
||||
options.tracesSampleRate = 0.20;
|
||||
options.enableUserInteractionTracing = true;
|
||||
|
||||
@@ -6,8 +6,10 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
FutureOr<SentryEvent?> sentryBeforeSend(SentryEvent event, {Hint? hint}) {
|
||||
if (canSendEvent(event.throwable)) return event;
|
||||
return null;
|
||||
if (!canSendEvent(event.throwable)) return null;
|
||||
return event.copyWith(
|
||||
user: SentryUser(email: "", username: "", ipAddress: "0.0.0.0"),
|
||||
);
|
||||
}
|
||||
|
||||
bool canSendEvent(dynamic throwable) {
|
||||
|
||||
Reference in New Issue
Block a user