Skip to content

Commit

Permalink
Add user logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom committed Nov 12, 2024
1 parent 5cf2427 commit 93009bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/modules/auth/store/auth.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default {

Auth0Service.getUser().then((user) => {
if (user) {
console.log(user);
setRumUser(user.nickname);
lfxHeader.authuser = user;
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/utils/datadog/rum.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ export function initRUM() {

export function setRumUser(id) {
datadogRum.setUser({ id });
// datadogRum.setUser({
// id: user['https://sso.linuxfoundation.org/claims/username'], // Users LFID
// email: user.email, // Users Email
// name: user.name // Users full name
// });
}

0 comments on commit 93009bd

Please sign in to comment.