https://github.com/tendermint/tendermint
Raw File
Tip revision: 4255d5d23366dfc875cffb8a35ea1dc907589200 authored by Sergio Mena on 22 December 2022, 17:20:26 UTC
Divergences in comparison with #9620. Part 4: Other changes spotted (#9927)
Tip revision: 4255d5d
metrics.go
package statesync

import (
	"github.com/go-kit/kit/metrics"
)

const (
	// MetricsSubsystem is a subsystem shared by all metrics exposed by this
	// package.
	MetricsSubsystem = "statesync"
)

//go:generate go run ../scripts/metricsgen -struct=Metrics

// Metrics contains metrics exposed by this package.
type Metrics struct {
	// Whether or not a node is state syncing. 1 if yes, 0 if no.
	Syncing metrics.Gauge
}
back to top