fix(oohelperd): measurement -> wctask (#906)
Make sure we don't say measurement in metrics. See https://github.com/ooni/probe/issues/2183#issuecomment-1230327725
This commit is contained in:
parent
42b547d311
commit
705589bbe1
2 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
elapsed := time.Since(started)
|
||||
metricWCTaskDurationSeconds.Observe(float64(elapsed.Seconds()))
|
||||
if err != nil {
|
||||
metricRequestsCount.WithLabelValues("400", "measurement_failed").Inc()
|
||||
metricRequestsCount.WithLabelValues("400", "wctask_failed").Inc()
|
||||
w.WriteHeader(400)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue