protected function getMetricMessage(AbstractMetric $metric)
    {
        $message = "{$metric->getName()}:{$this->getMetricValue($metric)}|{$this->getMetricIndicator($metric)}";

        if ($metric->getSampleRate() < 1 && $metric->getSampleRate() > 0) {
            $message .= '|@'.sprintf("%.1f", $metric->getSampleRate());
        }

        return $message . $this->getFormattedTags($metric->getTags());
    }
protected function getMetricMessage(AbstractMetric $metric)
    {
        $message = "{$metric->getName()}:{$this->getMetricValue($metric)}|{$this->getMetricIndicator($metric)}";

        if ($metric->getSampleRate() < 1 && $metric->getSampleRate() > 0) {
            $message .= '|@'.sprintf("%.1f", $metric->getSampleRate());
        }

        return $message . $this->getFormattedTags($metric->getTags());
    }
protected function getMetricMessage ( AbstractMetric $ metric ) { $ message = "{$metric->getName()}:{$this->getMetricValue($metric)}|{$this->getMetricIndicator($metric)}" ; if ( $ metric -> getSampleRate ( ) < 1 && $ metric -> getSampleRate ( ) > 0 ) { $ message .= '|@' . sprintf ( "%.1f" , $ metric -> getSampleRate ( ) ) ; } return $ message . $ this -> getFormattedTags ( $ metric -> getTags ( ) ) ; }
Builds the metric udp message

@param AbstractMetric $metric

@return string
Builds the metric udp message