LoopbackΒΆ

// server/middleware/sentry.js

var Raven = require('raven');
Raven.config('__DSN__').install();

module.exports = function () {
  return Raven.errorHandler();
}
// server/middleware.json

"final": {
  "./middleware/sentry": {}
}