public final class MetricUtils extends Object
Meter instances for MethodDescriptors.| Modifier and Type | Method and Description |
|---|---|
static io.micrometer.core.instrument.Counter.Builder |
prepareCounterFor(MethodDescriptor<?,?> method,
String name,
String description)
Creates a new counter builder for the given method.
|
static io.micrometer.core.instrument.Timer.Builder |
prepareTimerFor(MethodDescriptor<?,?> method,
String name,
String description)
Creates a new timer builder for the given method.
|
public static io.micrometer.core.instrument.Counter.Builder prepareCounterFor(MethodDescriptor<?,?> method, String name, String description)
method - The method the counter will be created for.name - The name of the counter to use.description - The description of the counter to use.public static io.micrometer.core.instrument.Timer.Builder prepareTimerFor(MethodDescriptor<?,?> method, String name, String description)
method - The method the timer will be created for.name - The name of the timer to use.description - The description of the timer to use.