faultline exception and error notifier for JavaScript.
unofficial faultline library for nodejs.
I made this becase I want this.
Using npm:
npm install node-faultline-proto
var faultlineJs = require('node-faultline-proto');
var faultline = faultlineJs.createClient({
project: 'faultline-js',
apiKey: 'xxxxXXXXXxXxXXxxXXXXXXXxxxxXXXXXX',
endpoint: 'https://xxxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/v0',
notifications: [
{
type: 'slack',
endpoint: 'https://hooks.slack.com/services/XXXXXXXXXX/B2RAD9423/WC2uTs3MyGldZvieAtAA7gQq',
channel: '#random',
username: 'faultline-notify',
notifyInterval: 1,
threshold: 1,
timezone: 'Asia/Tokyo'
}
]
});
faultline.notify(new Error("test"));
The common use case for this module is to catch all 'uncaughtException' events on the process object and send them to Faultline.
var faultlineJs = require('node-faultline-proto');
var faultline = faultlineJs.createClient({
project: 'faultline-js',
apiKey: 'xxxxXXXXXxXxXXxxXXXXXXXxxxxXXXXXX',
endpoint: 'https://xxxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/v0',
notifications: [
{
type: 'slack',
endpoint: 'https://hooks.slack.com/services/XXXXXXXXXX/B2RAD9423/WC2uTs3MyGldZvieAtAA7gQq',
channel: '#random',
username: 'faultline-notify',
notifyInterval: 1,
threshold: 1,
timezone: 'Asia/Tokyo'
}
]
});
faultline.handleExceptions();
throw new Error("test");
- faultline-js is based on airbrake/node-airbrake
- Node Airbrake is licensed under The MIT License (MIT).
MIT © Yuta Natsume