This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ var newrelic = require ( "newrelic" ) ;
2+
3+ var fixTransactionName = function ( connection , actionTemplate , next ) {
4+ if ( connection . type === 'web' ) {
5+ newrelic . setControllerName ( actionTemplate . name ) ;
6+ }
7+ next ( connection , true ) ;
8+ }
9+
10+ var reportException = function ( type , err , extraMessages , severity ) {
11+ newrelic . noticeError ( err ) ;
12+ }
13+
14+ exports . nrmid = function ( api , next ) {
15+ api . actions . preProcessors . push ( fixTransactionName ) ;
16+ api . exceptionHandlers . reporters . push ( reportException ) ;
17+ next ( ) ;
18+ } ;
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ exports.routes = {
333333
334334 { path : "/:apiVersion/download/document/:docId" , action : "downloadDocument" } ,
335335
336- { path : "/:apiVersion/reports/analyze" , action : "getChallengeAnalyze" } ,
336+ // { path: "/:apiVersion/reports/analyze", action: "getChallengeAnalyze" },
337337 { path : "/:apiVersion/reports/client/costs" , action : "getClientChallengeCosts" } ,
338338 { path : "/:apiVersion/reports/client/challenges" , action : "clientChallengeCosts" } ,
339339 { path : "/:apiVersion/reports/client/activeChallenges" , action : "getClientActiveChallengeCosts" } ,
You can’t perform that action at this time.
0 commit comments