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

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

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

@param string $metric      Metric name
@param mixed  $uniqueValue Metric unique value
@param array  $tags        Metric tags
@param int    $sampleRate  Sample rate for the metric

@return $this
Sends a set metric