Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/captainsafia/micro-sentry

Send micro errors to the Sentry service
https://github.com/captainsafia/micro-sentry

Last synced: about 1 month ago
JSON representation

Send micro errors to the Sentry service

Lists

README

        

# micro-sentry

`micro-sentry` allows you to send [`micro`](https://github.com/zeit/micro) errors to [Sentry](https://sentry.io).

### Installation

```
$ npm install --save micro-sentry
```

OR

```
$ yarn add micro-sentry
```

### Example

```
const sendToSentry = require('micro-sentry');
const url = 'https://:@sentry.io/';

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
```