Skip to content
Snippets Groups Projects
Commit fb1d6709 authored by poka's avatar poka
Browse files

set sentry replay sessions

parent f1951ff2
No related branches found
No related tags found
No related merge requests found
Pipeline #40126 waiting for manual action
...@@ -62,14 +62,24 @@ Future<void> main() async { ...@@ -62,14 +62,24 @@ Future<void> main() async {
if (kReleaseMode && enableSentry) { if (kReleaseMode && enableSentry) {
await SentryFlutter.init((options) { await SentryFlutter.init((options) {
options.dsn = 'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110'; options.dsn = 'https://c09587b46eaa42e8b9fda28d838ed180@o496840.ingest.sentry.io/5572110';
options.experimental.replay.sessionSampleRate = 1.0;
options.experimental.replay.onErrorSampleRate = 1.0;
// Privacy settings for PII masking
//TODO: Set this to false in production for Ğ1
options.experimental.privacy.maskAllText = false;
options.experimental.privacy.maskAllImages = false;
}, },
appRunner: () => SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) { appRunner: () => SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) {
runApp(EasyLocalization( runApp(
SentryWidget(
child: EasyLocalization(
supportedLocales: const [Locale('en'), Locale('fr'), Locale('es'), Locale('it')], supportedLocales: const [Locale('en'), Locale('fr'), Locale('es'), Locale('it')],
path: 'assets/translations', path: 'assets/translations',
fallbackLocale: const Locale('en'), fallbackLocale: const Locale('en'),
child: const Gecko(), child: const Gecko(),
)); ),
),
);
})); }));
} else { } else {
log.i('Debug mode enabled: No sentry alert'); log.i('Debug mode enabled: No sentry alert');
......
...@@ -1471,18 +1471,18 @@ packages: ...@@ -1471,18 +1471,18 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: sentry name: sentry
sha256: "90c2f956c146bcc9c4843406dd4a65d08b25575828dc2ad51de0ca5cd713209f" sha256: "3a64dd001bff768ce5ab6fc3608deef4dde22acd4b5d947763557b20db9e2a32"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.13.2" version: "8.14.0"
sentry_flutter: sentry_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
name: sentry_flutter name: sentry_flutter
sha256: ee6b41956ad570706bf5c2489915d71d75522d154200c0df24be2c4e5654ca21 sha256: "3d361f2d5f805783e2e4ed1bd475ef126b36cf525b359dc3627a765a3fb7424d"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "8.13.2" version: "8.14.0"
shared_preferences: shared_preferences:
dependency: transitive dependency: transitive
description: description:
......
...@@ -26,7 +26,7 @@ dependencies: ...@@ -26,7 +26,7 @@ dependencies:
barcode_scan2: ^4.5.0 barcode_scan2: ^4.5.0
qr_flutter: ^4.1.0 qr_flutter: ^4.1.0
responsive_framework: ^1.5.1 responsive_framework: ^1.5.1
sentry_flutter: ^8.13.2 sentry_flutter: ^8.14.0
truncate: ^3.0.1 truncate: ^3.0.1
unorm_dart: ^0.3.0 unorm_dart: ^0.3.0
dio: ^5.8.0+1 dio: ^5.8.0+1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment