aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShohet <uri.shohet@intel.com>2016-03-21 15:36:19 +0200
committerShohet <uri.shohet@intel.com>2016-03-21 15:36:19 +0200
commit779694bb7b293a28cf46b98ceae8ecdc27ef575d (patch)
treeb1d1df4c58f3ff6ca0b13c47d726ad9e3536eea0
parent34cd2a00cc112d72f1d3a53eafa86ab90abc48a6 (diff)
downloadKamon-779694bb7b293a28cf46b98ceae8ecdc27ef575d.tar.gz
Kamon-779694bb7b293a28cf46b98ceae8ecdc27ef575d.tar.bz2
Kamon-779694bb7b293a28cf46b98ceae8ecdc27ef575d.zip
revert to ": " to cover the "trace", "POST: /kamon/example" case, but add replace(":", "-") afterwards to cover the remotely deployed actors case too
-rw-r--r--kamon-statsd/src/main/scala/kamon/statsd/SimpleMetricKeyGenerator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-statsd/src/main/scala/kamon/statsd/SimpleMetricKeyGenerator.scala b/kamon-statsd/src/main/scala/kamon/statsd/SimpleMetricKeyGenerator.scala
index 57f1db1a..35214846 100644
--- a/kamon-statsd/src/main/scala/kamon/statsd/SimpleMetricKeyGenerator.scala
+++ b/kamon-statsd/src/main/scala/kamon/statsd/SimpleMetricKeyGenerator.scala
@@ -58,7 +58,7 @@ class SimpleMetricKeyGenerator(config: Config) extends MetricKeyGenerator {
def createNormalizer(strategy: String): Normalizer = strategy match {
case "percent-encode" ⇒ PercentEncoder.encode
- case "normalize" ⇒ (s: String) ⇒ s.replace(":", "-").replace(" ", "_").replace("/", "_").replace(".", "_")
+ case "normalize" ⇒ (s: String) ⇒ s.replace(": ", "-").replace(":", "-").replace(" ", "_").replace("/", "_").replace(".", "_")
}
}