Skip to content

Commit

Permalink
misc(coordinator): move kamon.init() to top
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Matejczyk committed Sep 12, 2020
1 parent d0232bc commit 5104243
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ final class FilodbCluster(val system: ExtendedActorSystem, overrideConfig: Confi

}

private[filodb] trait KamonInit {
Kamon.init()
}

/** Mixin for easy usage of the FiloDBCluster Extension.
* Used by all `ClusterRole` nodes starting an ActorSystem and FiloDB Cluster nodes.
*/
private[filodb] trait FilodbClusterNode extends NodeConfiguration with StrictLogging {
Kamon.init()

private[filodb] trait FilodbClusterNode extends NodeConfiguration with StrictLogging with KamonInit {
def role: ClusterRole

/** Override to pass in additional module config. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ trait SocketChecker {
}
}

trait FilodbClusterNodeSpec extends AbstractSpec with FilodbClusterNode with ScalaFutures {
trait FilodbClusterNodeSpec extends AbstractSpec with ScalaFutures with FilodbClusterNode {
val port = 22552 + util.Random.nextInt(200)

// Ensure that CoordinatedShutdown does not shutdown the whole test JVM, otherwise Travis CI/CD fails
Expand Down

0 comments on commit 5104243

Please sign in to comment.