diff options
Diffstat (limited to 'kamon-log-reporter/src/main/scala')
-rw-r--r-- | kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala b/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala index dc977a52..d5b07f6d 100644 --- a/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala +++ b/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala @@ -35,13 +35,13 @@ class LogReporterExtension(system: ExtendedActorSystem) extends Kamon.Extension val logReporterConfig = system.settings.config.getConfig("kamon.log-reporter") val subscriber = system.actorOf(Props[LogReporterSubscriber], "kamon-log-reporter") - Kamon(Metrics)(system).subscribe("trace", "**", subscriber, permanently = true) - Kamon(Metrics)(system).subscribe("actor", "**", subscriber, permanently = true) - Kamon(Metrics)(system).subscribe("user-metrics", "**", subscriber, permanently = true) + Kamon.metrics.subscribe("trace", "**", subscriber, permanently = true) + Kamon.metrics.subscribe("actor", "**", subscriber, permanently = true) + Kamon.metrics.subscribe("user-metrics", "**", subscriber, permanently = true) val includeSystemMetrics = logReporterConfig.getBoolean("report-system-metrics") if (includeSystemMetrics) { - Kamon(Metrics)(system).subscribe("system-metric", "**", subscriber, permanently = true) + Kamon.metrics.subscribe("system-metric", "**", subscriber, permanently = true) } } |