Skip to content

Commit

Permalink
Add puppeteer to Sentry user
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Aug 8, 2024
1 parent f01cb4c commit d76c179
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export class AppComponent implements OnInit {
this.languages = this.localeContextService.languages;
this.authService.currentUser.subscribe(currentUser => {
this.currentUser = currentUser
let username = currentUser?.first_name + ' ' + currentUser?.last_name;
if (currentUser.puppeteer) {
username += ` (Puppet of ${currentUser.puppeteer.first_name} ${currentUser.puppeteer.last_name})`;
}
Sentry.setUser({
id: currentUser?.person_id,
username: currentUser?.first_name + ' ' + currentUser?.last_name,
Expand Down

0 comments on commit d76c179

Please sign in to comment.