voxa-raven

0.0.5 • Public • Published

Voxa Raven

Build Status Coverage Status

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

Dependencies (2)

Dev Dependencies (11)

Package Sidebar

Install

npm i voxa-raven

Weekly Downloads

11

Version

0.0.5

License

MIT

Last publish

Collaborators

  • voxaai
  • rain-agency