diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-08-04 23:44:17 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-08-04 23:44:17 -0300 |
commit | 1256ed00ebb9496bfc67637526cf269acd4ea6fa (patch) | |
tree | b2dbbec8533092fabbd59ce8dbdfc1ecd7c1645b /kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala | |
parent | 699917cfdb6978d5682cb4427635f29d01fa79d7 (diff) | |
download | Kamon-1256ed00ebb9496bfc67637526cf269acd4ea6fa.tar.gz Kamon-1256ed00ebb9496bfc67637526cf269acd4ea6fa.tar.bz2 Kamon-1256ed00ebb9496bfc67637526cf269acd4ea6fa.zip |
= datadog,sysmetrics: minor formatting changes
Diffstat (limited to 'kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala')
-rw-r--r-- | kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala index 3db3cbfb..5ab0589c 100644 --- a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala +++ b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala @@ -89,13 +89,13 @@ class DatadogMetricsSender(remote: InetSocketAddress, maxPacketSizeInBytes: Long def encodeStatsDCounter(count: Long): String = count.toString + "|c" def buildMetricName(groupIdentity: MetricGroupIdentity, metricIdentity: MetricIdentity): String = - if(isUserMetric(groupIdentity)) + if (isUserMetric(groupIdentity)) s"$appName.${groupIdentity.category.name}.${groupIdentity.name}" else s"$appName.${groupIdentity.category.name}.${metricIdentity.name}" def buildIdentificationTag(groupIdentity: MetricGroupIdentity, metricIdentity: MetricIdentity): String = { - if(isUserMetric(groupIdentity)) "" else { + if (isUserMetric(groupIdentity)) "" else { // Make the automatic HTTP trace names a bit more friendly val normalizedEntityName = groupIdentity.name.replace(": ", ":") s"|#${groupIdentity.category.name}:${normalizedEntityName}" |