javascript - newrelic with angular application -
so have been trying 1. pages on google find answer without luck.
the issue
i trying use newrelics browser monitor. reason have added code snippet website , added top of application:
now seems working able view data:
however sadly neither pages nor javascript errors being reported.
and when attempt go session alot of funny data:
so set out find solution:
what ive tried
- i attempted bower install module suppose work:
however made no changes.
i attempted make own decorator using following example:
sending angularjs errors new relic
sadly without results.
so here kinda stranded support not responding atleast few days. therefor hoping of guys might able me out.
to need make custom exception handler , send there data new relic. code works me
function errprovider() { this.$get = ['$log', '$window', function($log, $window) { return function(exception, cause) { // send new relic if ($window.nreum) { $window.nreum.noticeerror(exception) } // standard behaviour $log.error.apply($log, arguments); }; }]; } export default angular .module('app-errors', [ ]) .provider('$exceptionhandler', errprovider);
Comments
Post a Comment