Generic error reporter.
Development status: Right now the only supported service is Sentry.
Install
$ yarn add x-error-reporter # or npm install --save x-error-reporter
Usage
// Normal Raven configuration. const raven = Raven // Setup. const adapter = raven const reporter = adapter // Error. const error = 'Foo' // Additional data. const user = id: 'test-user-id' const req = user ip: '127.0.0.1' const tags = 'unexpected' 'bug' // Report error. reporter
Tests
$ yarn test # or npm test, run unit test, does not require external setup. $ yarn test-integration # or npm run test-integration, run integration test, # requires external setup, see `test/integration/config.js.example`.
License
Copyright 2017 Saran Siriphantnon <deoxen0n2@gmail.com> MIT License.