https://github.com/voxaai/voxa-raven
An adapter that adds sentry logging capabilities to Alexa skills implemented with voxa
https://github.com/voxaai/voxa-raven
Last synced: over 1 year ago
JSON representation
An adapter that adds sentry logging capabilities to Alexa skills implemented with voxa
- Host: GitHub
- URL: https://github.com/voxaai/voxa-raven
- Owner: VoxaAI
- Created: 2017-03-02T21:33:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-05T16:00:47.000Z (over 8 years ago)
- Last Synced: 2024-04-26T06:21:18.194Z (about 2 years ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Voxa Raven
===========
[](https://travis-ci.org/mediarain/voxa-raven)
[](https://coveralls.io/github/mediarain/voxa-raven?branch=master)
A raven plugin for [voxa](https://mediarain.github.io/voxa/)
Installation
-------------
Just install from [npm](https://www.npmjs.com/package/voxa-raven)
```bash
npm install --save voxa-raven
```
Usage
------
```javascript
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](http://bluebirdjs.com/docs/api/promise.promisifyall.html) from [Bluebird](http://bluebirdjs.com/docs/getting-started.html)
This means you can use Raven callbacks method with promises:
- request.raven.captureMessageAsync
- request.raven.captureExceptionAsync