From a9bde76bfc04a8de7afc5e92cfe709e415b28e9a Mon Sep 17 00:00:00 2001 From: Mike Surowiec Date: Thu, 8 Apr 2021 09:43:09 -0700 Subject: [PATCH] fix: hydro status code metric --- lib/hydro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hydro.js b/lib/hydro.js index 0081a6d6d4..0755ce4ee0 100644 --- a/lib/hydro.js +++ b/lib/hydro.js @@ -80,7 +80,7 @@ module.exports = class Hydro { const res = await hydroStats.asyncTimer(doFetch, 'response_time')() - hydroStats.increment(`response_code.${res.statusCode}`, 1) + hydroStats.increment(`response_code.${res.status}`, 1) hydroStats.increment('response_code.all', 1) // Track hydro exceptions in Sentry, but don't track 503s because we can't do anything about service availability