any example how to use getusercontext ?
heyharii opened this issue · comments
heyharii commented
Jordan Eldredge commented
Something like this?
const ravenMiddleware = createRavenMiddleware(Raven, {
getUserContext: state => ({
id: state.user.id,
username: state.user.username,
role: state.user.role
})
});
Jordan Eldredge commented
I'll close this for now. Let me know if that helps.