forked from TrueCloudLab/frostfs-node
[#857] golangci: Add perfsprint linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d2746a7d67
commit
5d7833c89b
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue