@NonNullApi @NonNullFields public class LogbackMetrics extends Object implements MeterBinder, AutoCloseable
Constructor and Description |
---|
LogbackMetrics() |
LogbackMetrics(Iterable<Tag> tags) |
LogbackMetrics(Iterable<Tag> tags,
ch.qos.logback.classic.LoggerContext context) |
Modifier and Type | Method and Description |
---|---|
void |
bindTo(MeterRegistry registry) |
void |
close() |
static void |
ignoreMetrics(Runnable r)
Used by
Counter.increment() implementations that may cause a logback logging event to occur. |
public void bindTo(MeterRegistry registry)
bindTo
in interface MeterBinder
public static void ignoreMetrics(Runnable r)
Counter.increment()
implementations that may cause a logback logging event to occur.
Attempting to instrument that implementation would cause a StackOverflowError
.r
- Don't record metrics on logging statements that occur inside of this runnable.public void close()
close
in interface AutoCloseable
Copyright © 2018. All rights reserved.