New: Associate same AnonToken with Sentry UI instance (#724)

This commit is contained in:
Qstick 2019-04-06 22:22:05 -04:00 committed by GitHub
parent 9d27fff825
commit c390fff361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -64,6 +64,7 @@ export default function createSentryMiddleware() {
branch,
version,
release,
userHash,
isProduction
} = window.Lidarr;
@ -83,6 +84,7 @@ export default function createSentryMiddleware() {
});
sentry.configureScope((scope) => {
scope.setUser({ username: userHash });
scope.setTag('version', version);
scope.setTag('production', isProduction);
});