public class TaggedRetryMetrics
extends java.lang.Object
implements io.micrometer.core.instrument.binder.MeterBinder
metrics.
The main difference from RetryMetrics is that this binder uses tags
to distinguish between metrics.| Modifier and Type | Class and Description |
|---|---|
static class |
TaggedRetryMetrics.MetricNames
Defines possible configuration for metric names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
static TaggedRetryMetrics |
ofRetryRegistry(io.github.resilience4j.retry.RetryRegistry registry)
Creates a new binder that uses given
registry as source of retries. |
static TaggedRetryMetrics |
ofRetryRegistry(TaggedRetryMetrics.MetricNames names,
io.github.resilience4j.retry.RetryRegistry registry)
Creates a new binder that uses given
registry as source of retries. |
public static TaggedRetryMetrics ofRetryRegistry(io.github.resilience4j.retry.RetryRegistry registry)
registry as source of retries.registry - the source of retriespublic static TaggedRetryMetrics ofRetryRegistry(TaggedRetryMetrics.MetricNames names, io.github.resilience4j.retry.RetryRegistry registry)
registry as source of retries.names - custom metric namesregistry - the source of retriespublic void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
bindTo in interface io.micrometer.core.instrument.binder.MeterBinder