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());
    }