From d0232bcf167bdaab2d9855105269570d47a8ed79 Mon Sep 17 00:00:00 2001 From: Szymon Matejczyk Date: Sat, 12 Sep 2020 12:51:49 +0200 Subject: [PATCH] misc(coordinator): move kamon.init() to top --- .../src/main/scala/filodb.coordinator/FilodbCluster.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coordinator/src/main/scala/filodb.coordinator/FilodbCluster.scala b/coordinator/src/main/scala/filodb.coordinator/FilodbCluster.scala index f6427838d3..d426aa7890 100644 --- a/coordinator/src/main/scala/filodb.coordinator/FilodbCluster.scala +++ b/coordinator/src/main/scala/filodb.coordinator/FilodbCluster.scala @@ -242,6 +242,7 @@ final class FilodbCluster(val system: ExtendedActorSystem, overrideConfig: Confi * Used by all `ClusterRole` nodes starting an ActorSystem and FiloDB Cluster nodes. */ private[filodb] trait FilodbClusterNode extends NodeConfiguration with StrictLogging { + Kamon.init() def role: ClusterRole @@ -262,8 +263,6 @@ private[filodb] trait FilodbClusterNode extends NodeConfiguration with StrictLog ActorSystem(role.systemName, allConfig) } - Kamon.init() - lazy val cluster = FilodbCluster(system) implicit lazy val ec = cluster.ec