diff options
author | Diego <diegolparra@gmail.com> | 2014-05-14 10:16:20 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-05-14 10:16:20 -0300 |
commit | f3bdb846843cdef90bfb419babc98992a721846b (patch) | |
tree | fed102fb4280cb9d0a5f4245ff1604b416a4f891 /kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala | |
parent | 503ad38d9412b9cc2997e8cde912a10df97f2830 (diff) | |
download | Kamon-f3bdb846843cdef90bfb419babc98992a721846b.tar.gz Kamon-f3bdb846843cdef90bfb419babc98992a721846b.tar.bz2 Kamon-f3bdb846843cdef90bfb419babc98992a721846b.zip |
= datadog: fix processTags method
Diffstat (limited to 'kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala')
-rw-r--r-- | kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala index eb19ae81..654ab978 100644 --- a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala +++ b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala @@ -66,7 +66,10 @@ class DatadogMetricsSender(remote: InetSocketAddress, maxPacketSizeInBytes: Long def processTags(tags: Seq[String]): String = { if (tags.isEmpty) "" else { - tags.foldLeft(new StringBuilder("|#")) { (sb, s) ⇒ if (sb.length > 2) sb ++= "," else sb ++= s }.toString() + tags.foldLeft(new StringBuilder("|#")) { + (sb, s) ⇒ if (sb.length > 2) sb ++= "," + sb ++= s + }.toString() } } |