mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 14:25:19 +00:00
Adds the `FinalizeBlock` method which replaces `BeginBlock`, `DeliverTx`, and `EndBlock` in a single call.
28 lines
790 B
Go
28 lines
790 B
Go
package state
|
|
|
|
import (
|
|
"github.com/go-kit/kit/metrics"
|
|
)
|
|
|
|
const (
|
|
// MetricsSubsystem is a subsystem shared by all metrics exposed by this
|
|
// package.
|
|
MetricsSubsystem = "state"
|
|
)
|
|
|
|
//go:generate go run ../scripts/metricsgen -struct=Metrics
|
|
|
|
// Metrics contains metrics exposed by this package.
|
|
type Metrics struct {
|
|
// Time spent processing FinalizeBlock
|
|
BlockProcessingTime metrics.Histogram `metrics_buckettype:"lin" metrics_bucketsizes:"1, 10, 10"`
|
|
|
|
// ConsensusParamUpdates is the total number of times the application has
|
|
// udated the consensus params since process start.
|
|
ConsensusParamUpdates metrics.Counter
|
|
|
|
// ValidatorSetUpdates is the total number of times the application has
|
|
// udated the validator set since process start.
|
|
ValidatorSetUpdates metrics.Counter
|
|
}
|