From f4a84d73a33d7adc7d3a10b3b69539117148fb32 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Thu, 1 Dec 2022 19:03:18 +0400 Subject: [PATCH] enable scheduler metrics --- src/main/kotlin/io/emeraldpay/dshackle/Starter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt index 525eda35..09bfd07f 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt @@ -22,6 +22,7 @@ import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.core.io.ClassPathResource import org.springframework.core.io.support.ResourcePropertySource +import reactor.core.scheduler.Schedulers @SpringBootApplication(scanBasePackages = ["io.emeraldpay.dshackle"]) open class Starter @@ -29,6 +30,7 @@ open class Starter private val log = LoggerFactory.getLogger(Starter::class.java) fun main(args: Array) { + Schedulers.enableMetrics() val app = SpringApplication(Starter::class.java) app.setDefaultProperties(ResourcePropertySource("version.properties").source) app.setBanner(ResourceBanner(ClassPathResource("banner.txt")))