frostfs-node/pkg/services/tree/metrics.go
Dmitrii Stepanov 4d5d6edcbe
All checks were successful
DCO action / DCO (pull_request) Successful in 50s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m41s
Build / Build Components (pull_request) Successful in 1m48s
Vulncheck / Vulncheck (pull_request) Successful in 2m30s
Tests and linters / Run gofumpt (pull_request) Successful in 3m32s
Tests and linters / Staticcheck (pull_request) Successful in 3m47s
Tests and linters / Tests (pull_request) Successful in 4m29s
Tests and linters / Tests with -race (pull_request) Successful in 4m26s
Tests and linters / gopls check (pull_request) Successful in 4m26s
Tests and linters / Lint (pull_request) Successful in 4m34s
[#1653] treeSvc: Add operations by IO tag metric
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-03-06 10:37:04 +03:00

17 lines
581 B
Go

package tree
import "time"
type MetricsRegister interface {
AddReplicateTaskDuration(time.Duration, bool)
AddReplicateWaitDuration(time.Duration, bool)
AddSyncDuration(time.Duration, bool)
AddOperation(string, string)
}
type defaultMetricsRegister struct{}
func (defaultMetricsRegister) AddReplicateTaskDuration(time.Duration, bool) {}
func (defaultMetricsRegister) AddReplicateWaitDuration(time.Duration, bool) {}
func (defaultMetricsRegister) AddSyncDuration(time.Duration, bool) {}
func (defaultMetricsRegister) AddOperation(string, string) {}