Skip to content

Commit

Permalink
Merge pull request #366 from lichess-org/add-io-metrics
Browse files Browse the repository at this point in the history
Add IO metrics for app & ingestor
  • Loading branch information
lenguyenthanh authored Nov 15, 2024
2 parents 0e28ab1 + 2f0daba commit f7d14a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/app/src/main/scala/app.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ object App extends IOApp.Simple:
config <- AppConfig.load.toResource
_ <- Logger[IO].info(s"Starting lila-search with config: $config").toResource
_ <- RuntimeMetrics.register[IO]
_ <- IOMetrics.register[IO]()
res <- AppResources.instance(config)
_ <- mkServer(res, config)
yield ()
Expand Down
1 change: 1 addition & 0 deletions modules/ingestor/src/main/scala/app.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object App extends IOApp.Simple:
for
given Meter[IO] <- mkMeter
_ <- RuntimeMetrics.register[IO]
_ <- IOMetrics.register[IO]()
config <- AppConfig.load.toResource
_ <- Logger[IO].info(s"Starting lila-search ingestor with config: $config").toResource
res <- AppResources.instance(config)
Expand Down

0 comments on commit f7d14a2

Please sign in to comment.