Skip to content

Commit

Permalink
add aggregate comlink response code stats (dydxprotocol#1162)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric <eric.warehime@gmail.com>
  • Loading branch information
dydxwill authored and Eric-Warehime committed Mar 12, 2024
1 parent 7774ad9 commit 47e365d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export default (options?: ResponseStatsOptions) => (
response.on('finish', () => {
stats.increment(`${config.SERVICE_NAME}.${options?.controllerName}.response_status_code.${response.statusCode}`,
1, { path: request.route.path, method: request.method });
stats.increment(`${config.SERVICE_NAME}.response_status_code.${response.statusCode}`,
1, { path: request.route.path, method: request.method });
});

return next();
Expand Down

0 comments on commit 47e365d

Please sign in to comment.