Skip to content

Commit

Permalink
fix metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
Aratz M. Lasa committed Mar 14, 2023
1 parent 55f753b commit 87470ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (a *API) getPayload(w http.ResponseWriter, r *http.Request) {
}
req = &creq
if !creq.Validate() {
a.m.ApiReqCounter.WithLabelValues("submitBlock", "400", "payload validation").Inc()
a.m.ApiReqCounter.WithLabelValues("getPayload", "400", "payload validation").Inc()
a.l.With(log.F{
"code": 400,
"endpoint": "getPayload",
Expand All @@ -243,7 +243,7 @@ func (a *API) getPayload(w http.ResponseWriter, r *http.Request) {
}
req = &breq
if !breq.Validate() {
a.m.ApiReqCounter.WithLabelValues("submitBlock", "400", "payload validation").Inc()
a.m.ApiReqCounter.WithLabelValues("getPayload", "400", "payload validation").Inc()
a.l.With(log.F{
"code": 400,
"endpoint": "getPayload",
Expand Down

0 comments on commit 87470ba

Please sign in to comment.