How to use the getContext function from raven

Find comprehensive JavaScript raven.getContext code examples handpicked from public code repositorys.

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] = {};
  }
fork icon5
star icon4
watch icon8

+ 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) }
  })
}
fork icon3
star icon1
watch icon0

+ 3 other calls in file