Backtrace provides an open-source module which you can use to capture uncaught Javascript errors within Node.js, as well as to manually send reports.

Download

backtrace-node is available as an npm package with the same name or from https://github.com/backtrace-labs/backtrace-node.  

Example Usage

var bt = require('backtrace-node');
bt.initialize({
  endpoint: "https://yourcompany.sp.backtrace.io:6098",
  token: "51cc8e69c5b62fa8c72dc963e730f1e8eacbd243aeafc35d08d05ded9a024121",
});

// ...

bt.report(new Error("something broke"));

Documentation

For more advanced usage or to learn more about backtrace-node, see the official package documentation at https://github.com/backtrace-labs/backtrace-node#readme 

Did this answer your question?