func()

in v2/metrics/processor/types.go [207:216]


func (i *Informer) GetMessageLockRenewedFailureCount() (float64, error) {
	var total float64
	common.Collect(i.registry.MessageLockRenewedCount, func(m *dto.Metric) {
		if !common.HasLabel(m, successLabel, "false") {
			return
		}
		total += m.GetCounter().GetValue()
	})
	return total, nil
}