const namespace … const subsystem … type ValidationMetrics … var Metrics … func init() { … } type validationMetrics … // ObserveRatchetingTime records the time spent on ratcheting func (m *validationMetrics) ObserveRatchetingTime(d time.Duration) { … } // Reset resets the metrics. This is meant to be used for testing. Panics // if the metrics cannot be re-registered. Returns all the reset metrics func (m *validationMetrics) Reset() []metrics.Registerable { … }