Skip to content

Commit

Permalink
Merge pull request #8091 from jrjohnson/add-login-metrics
Browse files Browse the repository at this point in the history
Add a Custom Sentry Login Metric
  • Loading branch information
dartajax committed Aug 23, 2024
2 parents 2e745c7 + 085c527 commit 0db0f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/frontend/app/services/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default class SessionService extends ESASessionService {
//this is also done for authenticated users in the Application Route
await this.store.findAll('school');
Sentry.setUser({ id: user.id });
Sentry.metrics.increment('login', 1, {
tags: { userAgent: navigator.userAgent },
});
}

async handleInvalidation() {
Expand Down

0 comments on commit 0db0f94

Please sign in to comment.