Skip to content

captainsafia/micro-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-sentry

micro-sentry allows you to send micro errors to Sentry.

Installation

$ npm install --save micro-sentry

OR

$ yarn add micro-sentry

Example

const sendToSentry = require('micro-sentry');
const url = 'https://<key>:<secret>@sentry.io/<project>';

module.exports = sendToSentry(url)(async (request, response) => {
    throw Error('This will be sent to Sentry!');
});

Development

$ git clone https://github.com/tanmulabs/micro-sentry.git
$ cd micro-sentry
$ npm install
$ npm test

About

Send micro errors to the Sentry service

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published