forked from TrueCloudLab/frostfs-node
[#857] golangci: Add perfsprint linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>rpc_not_defined
parent
d2746a7d67
commit
5d7833c89b
|
@ -79,5 +79,6 @@ linters:
|
|||
- contextcheck
|
||||
- importas
|
||||
- truecloudlab-linters
|
||||
- perfsprint
|
||||
disable-all: true
|
||||
fast: false
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package metrics
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-observability/metrics"
|
||||
|
@ -52,7 +52,7 @@ func (m *writeCacheMetrics) AddMethodDuration(shardID string, method string, suc
|
|||
m.methodDuration.With(
|
||||
prometheus.Labels{
|
||||
shardIDLabel: shardID,
|
||||
successLabel: fmt.Sprintf("%v", success),
|
||||
successLabel: strconv.FormatBool(success),
|
||||
storageLabel: storageType,
|
||||
methodLabel: method,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue