How to use the context function from raven
Find comprehensive JavaScript raven.context code examples handpicked from public code repositorys.
10 11 12 13 14 15 16 17 18 19 20Raven.config(process.env.SENTRY_DSN).install(); }; function raven_report(e, context_opts) { if(process.env.SENTRY_DSN) { Raven.context(function () { if(context_opts) { Raven.setContext(context_opts); };
GitHub: rokid/egg-raven

11 12 13 14 15 16 17 18 19 20/* istanbul ignore next */ const taskName = scope.name || scope._name || eggUtils.getCalleeFromStack(true) if (domain.active) { contextRunInBackground() } else { Raven.context(contextRunInBackground) } async function contextRunInBackground () { Raven.mergeContext({ req: ctx.request })
raven.captureException is the most popular function in raven (228 examples)
