nest-raven icon indicating copy to clipboard operation
nest-raven copied to clipboard

User Data on sentry

Open kayvaninvemo opened this issue 4 years ago • 1 comments

In the document is say that "Interceptor automatically adds req and req.user (as user) to additional data." but it does not unless we say to do:

new RavenInterceptor({
        user: true,  // it will collect the default user keys : DEFAULT_USER_KEYS = ['id', 'username', 'email']
})

if you want to collect other keys:

new RavenInterceptor({
        user: ['id', 'username', 'email', 'custom-keys-here'],
})

I guess the document deserve an update.

kayvaninvemo avatar Jan 18 '21 06:01 kayvaninvemo

Hey. This issue pointed me in the right direction but i still don't get any user data passed through to my issue events in Sentry.

I am using:

    Sentry.setUser({
      accountId: String(account.id),
      shop: account.shop
    });

Any thoughts as to why this wouldn't work?

lukeclifton avatar Jun 04 '21 09:06 lukeclifton