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
|
- contextcheck
|
||||||
- importas
|
- importas
|
||||||
- truecloudlab-linters
|
- truecloudlab-linters
|
||||||
|
- perfsprint
|
||||||
disable-all: true
|
disable-all: true
|
||||||
fast: false
|
fast: false
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-observability/metrics"
|
"git.frostfs.info/TrueCloudLab/frostfs-observability/metrics"
|
||||||
|
@ -52,7 +52,7 @@ func (m *writeCacheMetrics) AddMethodDuration(shardID string, method string, suc
|
||||||
m.methodDuration.With(
|
m.methodDuration.With(
|
||||||
prometheus.Labels{
|
prometheus.Labels{
|
||||||
shardIDLabel: shardID,
|
shardIDLabel: shardID,
|
||||||
successLabel: fmt.Sprintf("%v", success),
|
successLabel: strconv.FormatBool(success),
|
||||||
storageLabel: storageType,
|
storageLabel: storageType,
|
||||||
methodLabel: method,
|
methodLabel: method,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue