4.1.1 • Published 6 years ago

koa2-raven v4.1.1

Weekly downloads
96
License
MIT
Repository
github
Last release
6 years ago

koa2-raven

NPM version build status coverage status

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

6 years ago

4.1.0

6 years ago

4.0.15

6 years ago

4.0.14

7 years ago

4.0.13

7 years ago

4.0.12

7 years ago

4.0.10

7 years ago

4.0.9

7 years ago

4.0.8

7 years ago

4.0.7

7 years ago

4.0.6

7 years ago

4.0.5

7 years ago

4.0.4

7 years ago

4.0.3

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago