chore: Bugsnag -> Sentry (#1178)

* Bugsnag -> Sentry

* fix: Import style
This commit is contained in:
Tom Moor
2020-02-16 22:58:50 -08:00
committed by GitHub
parent 8fbd4a7463
commit c15cbd06a4
15 changed files with 157 additions and 238 deletions

View File

@ -75,13 +75,12 @@ export default class AuthStore {
this.user = new User(user);
this.team = new Team(team);
if (window.Bugsnag) {
Bugsnag.user = {
id: user.id,
name: user.name,
teamId: team.id,
team: team.name,
};
if (window.Sentry) {
Sentry.configureScope(function(scope) {
scope.setUser({ id: user.id });
scope.setExtra('team', team.name);
scope.setExtra('teamId', team.id);
});
}
// If we came from a redirect then send the user immediately there