agent/metrics/generic_metrics_client.go
func (gm *GenericMetrics) IncrementCallCount(callName string) {
	defer func() {
		if r := recover(); r != nil {
			seelog.Errorf("IncrementCallCount for %s panicked. Recovering quietly: %s", callName, r)
		}
	}()
	gm.lock.Lock()
	defer gm.lock.Unlock()
	gm.counterVec.WithLabelValues(callName).Inc()
}
func (gm *GenericMetrics) IncrementCallCount(callName string) {
	defer func() {
		if r := recover(); r != nil {
			seelog.Errorf("IncrementCallCount for %s panicked. Recovering quietly: %s", callName, r)
		}
	}()
	gm.lock.Lock()
	defer gm.lock.Unlock()
	gm.counterVec.WithLabelValues(callName).Inc()
}
func ( gm * GenericMetrics ) IncrementCallCount ( callName string ) { defer func ( ) { if r := recover ( ) ; r != nil { seelog . Errorf ( " " , callName , r ) } } ( ) gm . lock . Lock ( ) defer gm . lock . Unlock ( ) gm . counterVec . WithLabelValues ( callName ) . Inc ( ) }
// This function increments the call count for a specific API call
// This is invoked at the API call's start, whereas the duration metrics
// are updated at the API call's end.
This function increments the call count for a specific API call This is invoked at the API call s start whereas the duration metrics are updated at the API call s end .