File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ const fetch = require('node-fetch')
33const statsd = require ( '../lib/statsd' )
44const FailBot = require ( '../lib/failbot' )
55
6- const hydroStats = statsd . childClient ( {
7- prefix : 'hydro.'
8- } )
9-
106const SCHEMAS = {
117 page : 'docs.v0.PageEvent' ,
128 exit : 'docs.v0.ExitEvent' ,
@@ -78,10 +74,10 @@ module.exports = class Hydro {
7874 }
7975 } )
8076
81- const res = await hydroStats . asyncTimer ( doFetch , 'response_time' ) ( )
77+ const res = await statsd . asyncTimer ( doFetch , 'hydro. response_time' ) ( )
8278
83- hydroStats . increment ( `response_code.${ res . statusCode } ` , 1 )
84- hydroStats . increment ( 'response_code.all' , 1 )
79+ statsd . increment ( `hydro. response_code.${ res . status } ` , 1 )
80+ statsd . increment ( 'hydro. response_code.all' , 1 )
8581
8682 // Track hydro exceptions in Sentry, but don't track 503s because we can't do anything about service availability
8783 if ( ! res . ok && res . status !== 503 ) {
You can’t perform that action at this time.
0 commit comments