@Singleton @RequiresMetrics public class TimedInterceptor extends java.lang.Object implements io.micronaut.aop.MethodInterceptor<java.lang.Object,java.lang.Object>
Timed
as AOP advice.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_METRIC_NAME
Default metric name.
|
static java.lang.String |
EXCEPTION_TAG
Tag key for an exception.
|
Modifier | Constructor and Description |
---|---|
protected |
TimedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context) |
public static final java.lang.String DEFAULT_METRIC_NAME
public static final java.lang.String EXCEPTION_TAG