Skip to content

Commit

Permalink
Add kanela agent when packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Nov 30, 2023
1 parent c15604a commit b296e1c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ lazy val app = project
log4CatsNoop,
http4sClient,
catsEffectTestKit,
)
),
javaAgents += kamonAgent,
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(JavaAppPackaging, JavaAgent)


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/lib"
include="$stage/bin $stage/kanela-agent $stage/lib"
rsync_command="rsync $RSYNC_OPTIONS $include $REMOTE:$REMOTE_DIR"
echo "$rsync_command"
$rsync_command
Expand Down
17 changes: 9 additions & 8 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ object Dependencies {
val lilaMaven = "lila-maven" at "https://raw.githubusercontent.com/lichess-org/lila-maven/master"

object V {
val circe = "0.14.6"
val http4s = "0.23.23"
val ciris = "3.4.0"
val kamon = "2.5.11"
val kamonHttp4s = "2.6.1"
val chess = "15.6.11"
val munit = "1.0.0-M8"
val catsEffect = "3.5.2"
val circe = "0.14.6"
val http4s = "0.23.23"
val ciris = "3.4.0"
val kamon = "2.5.11"
val kamonAgent = "1.0.16"
val chess = "15.6.11"
val munit = "1.0.0-M8"
val catsEffect = "3.5.2"
}

def http4s(artifact: String) = "org.http4s" %% s"http4s-$artifact" % V.http4s
Expand All @@ -33,6 +33,7 @@ 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
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
addSbtPlugin("com.github.sbt" % "sbt-javaagent" % "0.1.8")
addSbtPlugin("io.kamon" % "sbt-kanela-runner" % "2.0.14")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.0")

0 comments on commit b296e1c

Please sign in to comment.