Netty metrics (#745)

This commit is contained in:
KirillPamPam
2025-11-19 13:14:52 +04:00
committed by GitHub
parent d1ae0b4052
commit 2c9352a4de
13 changed files with 56 additions and 7 deletions

View File

@@ -37,7 +37,8 @@ class JsonRpcHttpReaderSpec extends Specification {
int port = 19332
RequestMetrics metrics = new RequestMetrics(
Timer.builder("test1").register(TestingCommons.meterRegistry),
Counter.builder("test2").register(TestingCommons.meterRegistry)
Counter.builder("test2").register(TestingCommons.meterRegistry),
false,
)
def setup() {

View File

@@ -4,6 +4,7 @@ import io.emeraldpay.dshackle.Chain
import io.emeraldpay.dshackle.FileResolver
import io.emeraldpay.dshackle.config.ChainsConfig
import io.emeraldpay.dshackle.config.ChainsConfigReader
import io.emeraldpay.dshackle.config.MonitoringConfig
import io.emeraldpay.dshackle.config.UpstreamsConfig
import io.emeraldpay.dshackle.foundation.ChainOptionsReader
import io.emeraldpay.dshackle.startup.configure.GenericConnectorFactoryCreator
@@ -37,6 +38,7 @@ class GenericConnectorFactoryCreatorTest {
immediate(),
immediate(),
immediate(),
MonitoringConfig.default(),
)
var args: List<*>? = null