Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Nov 27, 2023
1 parent fa1e95a commit 7b72bfb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ trait StatusRoutes {
val statusService: StatusService
implicit val executionContext: ExecutionContext

private lazy val checkStatusSuccessCounter = GlobalOpenTelemetry.getMeter("StatusRoutes").counterBuilder("checkStatus-success").build()
private lazy val checkStatusFailureCounter = GlobalOpenTelemetry.getMeter("StatusRoutes").counterBuilder("checkStatus-failure").build()
// lazy to make sure GlobalOpenTelemetry is initialized
private lazy val otelMeter = GlobalOpenTelemetry.getMeter("StatusRoutes")
private lazy val checkStatusSuccessCounter = otelMeter.counterBuilder("checkStatus-success").build()
private lazy val checkStatusFailureCounter = otelMeter.counterBuilder("checkStatus-failure").build()

def statusRoutes: server.Route =
pathPrefix("status") {
Expand Down

0 comments on commit 7b72bfb

Please sign in to comment.