public function histogram($metric, $duration = null, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        return new Histogram($this->prefix($metric), $duration, array_merge($this->defaultTags, $tags), $sampleRate);
    }
public function histogram($metric, $duration = null, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        return new Histogram($this->prefix($metric), $duration, array_merge($this->defaultTags, $tags), $sampleRate);
    }
public function histogram ( $ metric , $ duration = null , array $ tags = array ( ) , $ sampleRate = AbstractMetric :: DEFAULT_SAMPLE_RATE ) { return new Histogram ( $ this -> prefix ( $ metric ) , $ duration , array_merge ( $ this -> defaultTags , $ tags ) , $ sampleRate ) ; }
Creates a new histogram

@param string $metric     Metric name
@param int    $duration   Histogram duration in milliseconds
@param array  $tags       Metric tags
@param int    $sampleRate Metric sample rate

@return Histogram
Creates a new histogram