0.2.2 • Published 7 years ago

newrelic-angular v0.2.2

Weekly downloads
54
License
MIT
Repository
github
Last release
7 years ago

newrelic-angular

Build Status npm version Bower version Coverage Status

A module to make reporting with New Relic Browser Insights easier for Angular!

Features

  • Report errors to New Relic with $log! $log.error('something really bad happened!');
  • Reports unhandled exceptions to New Relic (thanks to $errorHander)
  • Virtual page views (via angulartics)

How to

Get it from npm

npm install --save newrelic-angular

Get it from bower

bower install --save newrelic-angular

Include the module in your application

angular.module('myApp', ['newrelic-angular']);

And add newrelic-angular.min.js to your project.

(Optional) Ignore certain statuses

angular.module('myApp', ['newrelic-angular'])
  .config(function(httpInterceptorProvider) {
   httpInterceptorProvider.setStatusesToIgnore([-1, 418]);
  });

Why?

For the sake of reporting! Also, angular's exception handler catches unhandled exceptions and delegates them to $log.error. That's a problem for New Relic because they are also catching unhandled exceptions and thanks to Angular, there aren't any true unhandled exceptions!

License

MIT

0.2.2

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago