public final class MetricUtils extends Object
Meter
instances for MethodDescriptor
s.Modifier and Type | Method and Description |
---|---|
static Counter.Builder |
prepareCounterFor(MethodDescriptor<?,?> method,
String name,
String description)
Creates a new counter builder for the given method.
|
static Timer.Builder |
prepareTimerFor(MethodDescriptor<?,?> method,
String name,
String description)
Creates a new timer builder for the given method.
|
public static 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 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.