Send user information to sentry without email
This commit is contained in:
parent
0f1e06e19c
commit
8e6e730c80
1 changed files with 3 additions and 5 deletions
|
@ -6,9 +6,7 @@ const { key, enabled, user, environment } = gon.sentry || {};
|
||||||
if (enabled && key) {
|
if (enabled && key) {
|
||||||
Sentry.init({ dsn: key, environment });
|
Sentry.init({ dsn: key, environment });
|
||||||
|
|
||||||
if (user.email) {
|
|
||||||
Sentry.configureScope(scope => {
|
Sentry.configureScope(scope => {
|
||||||
scope.setUser(user);
|
scope.setUser(user);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue