voxa-raven
v0.0.5
Published
Raven integration for voxa
Downloads
57
Readme
Voxa Raven
A raven plugin for voxa
Installation
Just install from npm
npm install --save voxa-raven
Usage
const Raven = require('raven');
const voxaRaven = require('voxa-raven');
Raven('https://my-raven-dsn');
voxaRaven(skill, Raven)
voxa-raven will create a raven context for every request and attach the client to request.raven so you can use it in your skill. It will also create breadcrumbs for state transitions and include the request in the extra context.
Also, the raven instance attached to request.raves
is using Promise.promisifyAll from Bluebird
This means you can use Raven callbacks method with promises:
- request.raven.captureMessageAsync
- request.raven.captureExceptionAsync