build without kamon statsd support
This commit is contained in:
parent
d5c188d8cd
commit
41e3c22a2f
|
@ -47,19 +47,3 @@ object KamonPusher {
|
|||
def start(system: ActorSystem)(instance: => Actor) =
|
||||
system.lilaBus.subscribe(system.actorOf(Props(instance)), 'nbMembers, 'nbRounds)
|
||||
}
|
||||
|
||||
import com.typesafe.config.Config
|
||||
import kamon.statsd.SimpleMetricKeyGenerator
|
||||
|
||||
// don't replace . with _
|
||||
// replace / with .
|
||||
class KeepDotsMetricKeyGenerator(config: Config) extends SimpleMetricKeyGenerator(config) {
|
||||
|
||||
override def createNormalizer(strategy: String): Normalizer = strategy match {
|
||||
case "keep-dots" => (s: String) ⇒ s
|
||||
.replace(": ", "-")
|
||||
.replace(" ", "_")
|
||||
.replace("/", ".")
|
||||
case _ => super.createNormalizer(strategy)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ object ApplicationBuild extends Build {
|
|||
scalaz, scalalib, hasher, config, apache,
|
||||
jgit, findbugs, reactivemongo.driver, reactivemongo.iteratees, akka.actor, akka.slf4j,
|
||||
maxmind, prismic, netty, guava,
|
||||
kamon.core, kamon.statsd, kamon.influxdb,
|
||||
kamon.core, kamon.influxdb,
|
||||
java8compat, semver, scrimage, configs, scaffeine),
|
||||
TwirlKeys.templateImports ++= Seq(
|
||||
"lila.game.{ Game, Player, Pov }",
|
||||
|
@ -72,7 +72,7 @@ object ApplicationBuild extends Build {
|
|||
libraryDependencies ++= provided(
|
||||
play.api, hasher, config, apache, jgit, findbugs,
|
||||
reactivemongo.driver, reactivemongo.iteratees,
|
||||
kamon.core, kamon.statsd, kamon.influxdb)
|
||||
kamon.core, kamon.influxdb)
|
||||
) aggregate (moduleRefs: _*)
|
||||
|
||||
lazy val puzzle = project("puzzle", Seq(
|
||||
|
|
|
@ -65,7 +65,6 @@ object Dependencies {
|
|||
object kamon {
|
||||
val version = "0.6.4.2-LILA"
|
||||
val core = "io.kamon" %% "kamon-core" % version
|
||||
val statsd = "io.kamon" %% "kamon-statsd" % version
|
||||
val influxdb = "io.kamon" %% "kamon-influxdb" % version
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue