Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

User Data on sentry #178

Open
Open
@kayvaninvemo

Description

@kayvaninvemo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions