Skip to content

Commit

Permalink
Add io metrics for app & ingestor
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Nov 15, 2024
1 parent 0e28ab1 commit 2f0daba
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 2f0daba

Please sign in to comment.