func()

in v2/metrics/sender/types.go [110:119]


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