nest-raven
nest-raven copied to clipboard
User Data on sentry
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.
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?