Generate a random uuid for each user for Sentry

This way, we know if one particular user has lots of errors. Firebase
Crashlytics used to do this automatically, I think.
This commit is contained in:
Vishesh Handa
2020-04-16 11:49:20 +02:00
parent 21a7798dc9
commit fd7ad7d92b
2 changed files with 15 additions and 0 deletions

View File

@ -62,6 +62,9 @@ Future<Event> get _environmentEvent async {
build: packageInfo.buildNumber,
),
),
userContext: User(
id: Settings.instance.pseudoId,
),
);
return environment;
}