I am on raven-js@^3.16.1
Correct me if I am wrong but my assumption is that global context will be sent along a captureException
or a captureMessage
call.
Raven.setUserContext({
id: 1,
email: 'foobar@gmail.com'
})
Raven.setExtraContext({
group: 1,
gender: 'male',
...
})
const err = new Error('foobar error')
Raven.captureException(err) // <--- I don't see id, email, group and gender in the Sentry Logs
So far from what I have tested, I only get the context of those variables that I have explicitly passed as extra
const data = {
token: 'asd2832nf8' // <-- I see this in the Sentry logs
}
Raven.captureException(err, {context: data})
Am I missing something here?