I’m evaluating Sentry for use in an AngularJS 1.x application.
I’ve noticed that if I add an error to an Ajax response handler that the error is not logged in Sentry. If I change the error code from:
throw new Error('Just testing an error')
Sentry.captureException('Just testing an error')
The error is logged so I know that Sentry is initialized and available.
What do I need to do to instrument all of my $http.get().then(handleIt) calls?
Similarly, I want to handle $http.post().
P.S. Also see StackOverflow question here: https://stackoverflow.com/questions/59491614/should-sentry-with-angularjs-detect-errors-in-ajax-calls/59491990#59491990