Skip to content

Commit a9bde76

Browse files
committed
fix: hydro status code metric
1 parent bfef839 commit a9bde76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hydro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = class Hydro {
8080

8181
const res = await hydroStats.asyncTimer(doFetch, 'response_time')()
8282

83-
hydroStats.increment(`response_code.${res.statusCode}`, 1)
83+
hydroStats.increment(`response_code.${res.status}`, 1)
8484
hydroStats.increment('response_code.all', 1)
8585

8686
// Track hydro exceptions in Sentry, but don't track 503s because we can't do anything about service availability

0 commit comments

Comments
 (0)