captbaritone / raven-for-redux

A Raven middleware for Redux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

any example how to use getusercontext ?

heyharii opened this issue · comments

Something like this?

const ravenMiddleware = createRavenMiddleware(Raven, {
    getUserContext: state => ({
        id: state.user.id,
        username: state.user.username,
        role: state.user.role
    })
});

I'll close this for now. Let me know if that helps.