How to use the getContext function from raven
Find comprehensive JavaScript raven.getContext code examples handpicked from public code repositorys.
GitHub: athombv/node-homey-log
219 220 221 222 223 224 225 226 227
* @param {string} key * @param {object} value * @private */ static _mergeContext(key, value) { const context = Raven.getContext(); if (!context[key]) { context[key] = {}; }
5
4
8
+ 2 other calls in file
8 9 10 11 12 13 14 15 16
app.on('error', err => { if (ignoreErros.indexOf(err.output.statusCode) >= 0) { return } console.error(err) const requestData = Raven.getContext() if (Object.keys(requestData).length > 0) { Raven.captureException(err, { extra: requestData }) } else { Raven.captureException(err) } }) }
3
1
0
+ 3 other calls in file
raven.captureException is the most popular function in raven (228 examples)