About
This page is about how an code exception can be tracked and analyzed.
The process is a log process where the exceptions are send as log to a log server.
Provider
The following list shows third party that provides a solution:
- New Relic
- Github Haystack a view that show only exceptions that happen after changes are live, continuously monitoring the health of all applications—looking for exception rates that differ from recent typical rates. with anomaly detection
Example
From Google Analytics (Documentation)
try {
// Runs code that may or may not work.
window.possiblyUndefinedFunction();
} catch(err) {
ga('send', 'exception', {
'exDescription': err.message,
'exFatal': false
});
}