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: 3 months ago
JSON representation
Send micro errors to the Sentry service
- Host: GitHub
- URL: https://github.com/captainsafia/micro-sentry
- Owner: captainsafia
- License: mit
- Created: 2017-08-25T19:57:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T00:37:34.000Z (about 2 years ago)
- Last Synced: 2024-04-13T18:15:05.458Z (9 months ago)
- Language: JavaScript
- Size: 309 KB
- Stars: 34
- Watchers: 2
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-micro - micro-sentry - Send micro errors to the Sentry service. (Modules / Loggers, Errors & Reporting)
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
```