4.1.1 • Published 7 years ago
koa2-raven v4.1.1
koa2-raven
raven-node middleware for koa v2. Records errors that are thrown from your other middleware and ignores errors that are thrown using ctx.throw
.
Install
Install raven > ^1.0.0-beta.1 and koa2-raven
npm i raven@next koa2-raven --save
Usage
const Koa = require('koa');
const Raven = require('raven');
const koaRaven = require('koa2-raven');
const app = new Koa();
const client = app.context.raven = Raven
.config('https://public:private@app.getsentry.com/269')
.install({ unhandledRejection: true });
koaRaven(app, client);
app.use(() => {
// This will log in sentry
throw new Error('Terrible Error');
});
app.listen(3000);
4.1.1
7 years ago
4.1.0
7 years ago
4.0.15
7 years ago
4.0.14
8 years ago
4.0.13
8 years ago
4.0.12
8 years ago
4.0.10
8 years ago
4.0.9
8 years ago
4.0.8
8 years ago
4.0.7
8 years ago
4.0.6
8 years ago
4.0.5
8 years ago
4.0.4
8 years ago
4.0.3
8 years ago
4.0.2
8 years ago
4.0.1
9 years ago
4.0.0
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.0
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago