diff --git a/frontend/src/modules/auth/store/auth.actions.ts b/frontend/src/modules/auth/store/auth.actions.ts index 2f3f57c1a..36de85100 100644 --- a/frontend/src/modules/auth/store/auth.actions.ts +++ b/frontend/src/modules/auth/store/auth.actions.ts @@ -34,8 +34,7 @@ export default { Auth0Service.getUser().then((user) => { if (user) { - console.log(user); - setRumUser(user.nickname); + setRumUser(user); lfxHeader.authuser = user; } }); diff --git a/frontend/src/utils/datadog/rum.js b/frontend/src/utils/datadog/rum.js index bf2435d22..c0c447e4e 100644 --- a/frontend/src/utils/datadog/rum.js +++ b/frontend/src/utils/datadog/rum.js @@ -19,11 +19,10 @@ 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 - // }); +export function setRumUser(user) { + datadogRum.setUser({ + id: user['https://sso.linuxfoundation.org/claims/username'], + email: user.email, + name: user.name, + }); }