diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-06-19 00:47:36 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-06-19 00:50:27 -0300 |
commit | e4552121e07d48afb4f27859d7edde72c1e3a217 (patch) | |
tree | 5e9b2afe4138fdfa9f9a9fe380e930814dad3fcc /kamon-datadog/src/main | |
parent | 1150d528eb5231993e542c086e2df90cf760d8a7 (diff) | |
download | Kamon-e4552121e07d48afb4f27859d7edde72c1e3a217.tar.gz Kamon-e4552121e07d48afb4f27859d7edde72c1e3a217.tar.bz2 Kamon-e4552121e07d48afb4f27859d7edde72c1e3a217.zip |
= core,datadog: make code compile again
Diffstat (limited to 'kamon-datadog/src/main')
-rw-r--r-- | kamon-datadog/src/main/scala/kamon/datadog/Datadog.scala | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kamon-datadog/src/main/scala/kamon/datadog/Datadog.scala b/kamon-datadog/src/main/scala/kamon/datadog/Datadog.scala index 15d5d3fe..1eb2e8a6 100644 --- a/kamon-datadog/src/main/scala/kamon/datadog/Datadog.scala +++ b/kamon-datadog/src/main/scala/kamon/datadog/Datadog.scala @@ -21,11 +21,8 @@ import kamon.Kamon import kamon.metrics._ import scala.concurrent.duration._ import scala.collection.JavaConverters._ -import com.typesafe.config.Config -import java.lang.management.ManagementFactory import akka.event.Logging import java.net.InetSocketAddress -import java.util.concurrent.TimeUnit.MILLISECONDS object Datadog extends ExtensionId[DatadogExtension] with ExtensionIdProvider { override def lookup(): ExtensionId[_ <: Extension] = Datadog @@ -43,9 +40,9 @@ class DatadogExtension(system: ExtendedActorSystem) extends Kamon.Extension { private val datadogConfig = system.settings.config.getConfig("kamon.datadog") val datadogHost = new InetSocketAddress(datadogConfig.getString("hostname"), datadogConfig.getInt("port")) - val flushInterval = datadogConfig.getDuration("flush-interval", MILLISECONDS) + val flushInterval = datadogConfig.getMilliseconds("flush-interval") val maxPacketSizeInBytes = datadogConfig.getBytes("max-packet-size") - val tickInterval = system.settings.config.getDuration("kamon.metrics.tick-interval", MILLISECONDS) + val tickInterval = system.settings.config.getMilliseconds("kamon.metrics.tick-interval") val datadogMetricsListener = buildMetricsListener(tickInterval, flushInterval) |