public function counter($metric, $count = 1, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        try {
            $this->sendMetric($this->metricFactory->counter($metric, $count, $tags, $sampleRate));
        } catch (\Exception $exception) {
            $this->logException($exception);
        }

        return $this;
    }
public function counter($metric, $count = 1, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        try {
            $this->sendMetric($this->metricFactory->counter($metric, $count, $tags, $sampleRate));
        } catch (\Exception $exception) {
            $this->logException($exception);
        }

        return $this;
    }
public function counter ( $ metric , $ count = 1 , array $ tags = array ( ) , $ sampleRate = AbstractMetric :: DEFAULT_SAMPLE_RATE ) { try { $ this -> sendMetric ( $ this -> metricFactory -> counter ( $ metric , $ count , $ tags , $ sampleRate ) ) ; } catch ( \ Exception $ exception ) { $ this -> logException ( $ exception ) ; } return $ this ; }
Sends a counter metric

@param string $metric     Metric Name
@param int    $count      Count value
@param array  $tags       Metric Tags
@param int    $sampleRate Sample rate for the metric

@return $this
Sends a counter metric