diff options
author | Diego <diegolparra@gmail.com> | 2014-06-07 17:03:56 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-06-07 17:03:56 -0300 |
commit | 9ca0bffb230baab4d79f30ceabfcb453387fe952 (patch) | |
tree | 19df3bf9fc393d6b027fddec22a1990ced07ce45 /kamon-datadog/src/main/scala | |
parent | c985fe9b26d7fd91404b887a8c1a851fbf478208 (diff) | |
download | Kamon-9ca0bffb230baab4d79f30ceabfcb453387fe952.tar.gz Kamon-9ca0bffb230baab4d79f30ceabfcb453387fe952.tar.bz2 Kamon-9ca0bffb230baab4d79f30ceabfcb453387fe952.zip |
= core : fixes #38
* I've changed the way to get the Actorsystem inside of DispatcerTracing, passing the actorSystem across the Dispatchers and then to each Dispatcher in the same ActorSystem.
Diffstat (limited to 'kamon-datadog/src/main/scala')
-rw-r--r-- | kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala index de4dc140..5b7ca471 100644 --- a/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala +++ b/kamon-datadog/src/main/scala/kamon/datadog/DatadogMetricsSender.scala @@ -16,15 +16,15 @@ package kamon.datadog -import akka.actor.{ActorSystem, Props, ActorRef, Actor} -import akka.io.{Udp, IO} +import akka.actor.{ ActorSystem, Props, ActorRef, Actor } +import akka.io.{ Udp, IO } import java.net.InetSocketAddress import akka.util.ByteString import kamon.metrics.Subscriptions.TickMetricSnapshot import kamon.metrics.MetricSnapshot.Measurement -import kamon.metrics.InstrumentTypes.{Counter, Gauge, Histogram, InstrumentType} +import kamon.metrics.InstrumentTypes.{ Counter, Gauge, Histogram, InstrumentType } import java.text.DecimalFormat -import kamon.metrics.{MetricIdentity, MetricGroupIdentity} +import kamon.metrics.{ MetricIdentity, MetricGroupIdentity } class DatadogMetricsSender(remote: InetSocketAddress, maxPacketSizeInBytes: Long) extends Actor with UdpExtensionProvider { @@ -77,8 +77,8 @@ class DatadogMetricsSender(remote: InetSocketAddress, maxPacketSizeInBytes: Long instrumentType match { case Histogram ⇒ dataDogDMetricFormat(measurement.value.toString, "ms", (1D / measurement.count)) - case Gauge ⇒ dataDogDMetricFormat(measurement.value.toString, "g") - case Counter ⇒ dataDogDMetricFormat(measurement.count.toString, "c") + case Gauge ⇒ dataDogDMetricFormat(measurement.value.toString, "g") + case Counter ⇒ dataDogDMetricFormat(measurement.count.toString, "c") } } |