There's more...

One of the coolest parts of Sentry is that it can be easily integrated into so many different kinds of applications. For example, if you really enjoy the features of aggregating errors and reviewing their details within Sentry's UI, why not add it to your backend applications as well? This is how you do it:

var app = require('express')();
var Raven = require('raven');

Raven.config(process.env.SENTRY_DSN).install();

app.use(Raven.requestHandler());

app.get('/', function mainHandler(req, res) {
    throw new Error('Broke!');
});

app.use(Raven.errorHandler());

app.listen(3000);

Integrating Sentry with Node.js is a great way to add backend monitoring to your MEAN stack web applications and maximize the potential of using a single tool for all your production monitoring and debugging. You can learn more about integrating Sentry with Node.js, including Express.js integration, in the official documentation: https://docs.sentry.io/clients/node/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.210.133