@NonNullApi @NonNullFields public class LogbackMetrics extends Object implements MeterBinder, AutoCloseable
| Constructor and Description |
|---|
LogbackMetrics() |
LogbackMetrics(Iterable<Tag> tags) |
LogbackMetrics(Iterable<Tag> tags,
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 MeterBinderpublic 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 AutoCloseableCopyright © 2020 LeanCloud. All rights reserved.