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:

enter image description here

now seems working able view data:

enter image description here

however sadly neither pages nor javascript errors being reported.

and when attempt go session alot of funny data:

enter image description here

so set out find solution:

what ive tried

  1. i attempted bower install module suppose work:

angular-ra-newrelic

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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -