frostfs-node/pkg/services/tree/metrics.go
Dmitrii Stepanov e3031359e0
All checks were successful
DCO action / DCO (pull_request) Successful in 41s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m33s
Build / Build Components (pull_request) Successful in 1m25s
Vulncheck / Vulncheck (pull_request) Successful in 1m49s
Tests and linters / Run gofumpt (pull_request) Successful in 3m35s
Tests and linters / Lint (pull_request) Successful in 3m50s
Tests and linters / Staticcheck (pull_request) Successful in 3m53s
Tests and linters / Tests (pull_request) Successful in 4m48s
Tests and linters / Tests with -race (pull_request) Successful in 4m47s
Tests and linters / gopls check (pull_request) Successful in 5m8s
[#1653] treeSvc: Add operations by IO tag metric
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-03-06 09:56:55 +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) {}