File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ const fetch = require('node-fetch')
3
3
const statsd = require ( '../lib/statsd' )
4
4
const FailBot = require ( '../lib/failbot' )
5
5
6
- const hydroStats = statsd . childClient ( {
7
- prefix : 'hydro.'
8
- } )
9
-
10
6
const SCHEMAS = {
11
7
page : 'docs.v0.PageEvent' ,
12
8
exit : 'docs.v0.ExitEvent' ,
@@ -78,10 +74,10 @@ module.exports = class Hydro {
78
74
}
79
75
} )
80
76
81
- const res = await hydroStats . asyncTimer ( doFetch , 'response_time' ) ( )
77
+ const res = await statsd . asyncTimer ( doFetch , 'hydro. response_time' ) ( )
82
78
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 )
85
81
86
82
// Track hydro exceptions in Sentry, but don't track 503s because we can't do anything about service availability
87
83
if ( ! res . ok && res . status !== 503 ) {
You can’t perform that action at this time.
0 commit comments