Skip to content

Commit

Permalink
Don't try to attach kanela instrumentaion when init
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Dec 1, 2024
1 parent 32f7ac3 commit 2b8e975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/Monitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class Monitor(
logger.info(s"lila-ws 3.0 netty kamon=$useKamon")
logger.info(s"Java version: $version, memory: ${memory}MB")

if useKamon then kamon.Kamon.init()
if useKamon then kamon.Kamon.initWithoutAttaching()

scheduler.scheduleWithFixedDelay(5.seconds, 1949.millis) { () => periodicMetrics() }

Expand Down

0 comments on commit 2b8e975

Please sign in to comment.