The ra.newrelic
module is a wrapper around newrelic-timing. It waits for the custom ra.pageload 'pageload:ready' event before firing the newRelic 'pageRendered' mark to give a better representation of page load times.
Install with bower:
bower install angular-ra-newrelic --save
Include the following js files:
bower_components/newrelic-timing/newrelic-timing.js
bower_components/angular-ra-pageload/angular-ra-pageload.min.js
bower_components/angular-ra-newrelic/angular-ra-newrelic.min.js
Add ra.newrelic
dependency to your application.
angular.module('application', ['ra.newrelic']);