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

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

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

@param string $metric     Metric name
@param int    $duration   Duration of the metric in milliseconds
@param array  $tags       Metric tags
@param int    $sampleRate Sample rate for the metric

@return $this
Sends an histogram