Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 421 Bytes

node-jackdaw

A sentry client for node

Example

var jd     = require('jackdaw')
  , dsn    = process.env.SENTRY_DSN
  , client = new jd.Client(dsn)

//
// Log all uncaught exceptions to sentry
//
process.on('uncaughtException', function(e){
  jd.Event.fromError(e, function(err, event){
    client.send(event, function(serr, resp, body) {
      console.log(serr, resp.statusCode, body);
    });
  });
});
Jump to Line
Something went wrong with that request. Please try again.