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