Skip to content

Commit

Permalink
Merge pull request #368 from lichess-org/remove-kanela
Browse files Browse the repository at this point in the history
Remove kanela
  • Loading branch information
ornicar authored Nov 26, 2024
2 parents 473858a + f08b573 commit b1bddcb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/main/scala/KamonInitiator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ trait KamonInitiator:
object KamonInitiator:
def apply(): KamonInitiator = new:
def init(config: KamonConfig): IO[Unit] =
IO.blocking(kamon.Kamon.init()).whenA(config.enabled)
IO.blocking(kamon.Kamon.initWithoutAttaching()).whenA(config.enabled)
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ lazy val app = project
http4sClient,
catsEffectTestKit
),
javaAgents += kamonAgent,
Docker / packageName := "lichess-org/lila-fishnet",
Docker / maintainer := "lichess.org",
Docker / dockerRepository := Some("ghcr.io")
)
.enablePlugins(JavaAppPackaging, JavaAgent, DockerPlugin)
.enablePlugins(JavaAppPackaging, DockerPlugin)

lazy val root = project
.in(file("."))
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RSYNC_OPTIONS=" \
--exclude '.git/'"

stage="app/target/universal/stage"
include="$stage/bin $stage/kanela-agent $stage/lib"
include="$stage/bin $stage/lib"
rsync_command="rsync $RSYNC_OPTIONS $include $REMOTE:$REMOTE_DIR"
echo "$rsync_command"
$rsync_command
Expand Down
4 changes: 1 addition & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ object Dependencies {
val circe = "0.14.10"
val http4s = "0.23.29"
val ciris = "3.6.0"
val kamon = "2.5.11"
val kamonAgent = "1.0.18"
val kamon = "2.7.5"
val chess = "16.3.3"
val catsEffect = "3.5.6"
}
Expand All @@ -36,7 +35,6 @@ object Dependencies {
val kamonCore = "io.kamon" %% "kamon-core" % V.kamon
val kamonInflux = "io.kamon" %% "kamon-influxdb" % V.kamon
val kamonSystemMetrics = "io.kamon" %% "kamon-system-metrics" % V.kamon
val kamonAgent = "io.kamon" % "kanela-agent" % V.kamonAgent

val http4sDsl = http4s("dsl")
val http4sServer = http4s("ember-server")
Expand Down
2 changes: 0 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.4")
addSbtPlugin("com.github.sbt" % "sbt-javaagent" % "0.1.8")
addSbtPlugin("io.kamon" % "sbt-kanela-runner" % "2.1.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0")
Expand Down

0 comments on commit b1bddcb

Please sign in to comment.