Monitoring examples, using Sentry
Monitoring works universally, both on the browser and the server.
The errors and stacktrace will be slightly different.
Also, source maps support is built-in. Beware that it doesn't work during development.
The errors and stacktrace will be slightly different.
Also, source maps support is built-in. Beware that it doesn't work during development.
Log runtime exception
try {
throw new Error('test');
} catch(e) {
Sentry.captureException(e);
}
Log message
Sentry.captureMessage(warning, Sentry.Severity.Warning);
Breadcrumbs (tracing that is only used in case an error happens)Sentry.addBreadcrumb({category: fileLabel, message: 'Rendering'})