use of io.micrometer.core.instrument.binder.logging.LogbackMetrics in project micrometer by micrometer-metrics.
the class StatsdMeterRegistryTest method counterIncrementDoesNotCauseStackOverflow.
@Issue("#411")
@Test
void counterIncrementDoesNotCauseStackOverflow() {
StatsdMeterRegistry registry = new StatsdMeterRegistry(configWithFlavor(StatsdFlavor.ETSY), clock);
new LogbackMetrics().bindTo(registry);
// Cause the publisher to get into a state that would make it perform logging at DEBUG level.
((Logger) LoggerFactory.getLogger(Operators.class)).setLevel(Level.DEBUG);
registry.publisher.onComplete();
registry.counter("my.counter").increment();
}
Aggregations