Skip to content

Commit

Permalink
add aggregate comlink response code stats (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Mar 11, 2024
1 parent 454cb0c commit 2996d4c
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 2996d4c

Please sign in to comment.