bufferedMetrics,
context
).withLogger(log);
discoveryWriter =
new DiscoveryWriter(new ThreadPoolBuilder()
.withName("Metric Discovery Writing")
.withCorePoolSize(Configuration.getInstance().getIntegerProperty(CoreConfig.DISCOVERY_WRITER_MIN_THREADS))
.withMaxPoolSize(Configuration.getInstance().getIntegerProperty(CoreConfig.DISCOVERY_WRITER_MAX_THREADS))
.withUnboundedQueue()
.build());