All Projects → captainsafia → micro-sentry

captainsafia / micro-sentry

Licence: MIT license
Send micro errors to the Sentry service

Programming Languages

javascript
184084 projects - #8 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].