Class TimedInterceptor
java.lang.Object
io.micronaut.configuration.metrics.micrometer.intercept.TimedInterceptor
- All Implemented Interfaces:
io.micronaut.aop.Interceptor<Object,
,Object> io.micronaut.aop.MethodInterceptor<Object,
,Object> io.micronaut.core.order.Ordered
@Singleton
@RequiresMetrics
@InterceptorBean(io.micrometer.core.annotation.Timed.class)
public class TimedInterceptor
extends Object
implements io.micronaut.aop.MethodInterceptor<Object,Object>
Implements support for
Timed
as AOP advice.- Since:
- 1.1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default metric name.static final String
Tag key for an exception.Fields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGET
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
TimedInterceptor
(io.micrometer.core.instrument.MeterRegistry meterRegistry) Deprecated.Pass conversion service in new constructorprotected
TimedInterceptor
(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.aop.MethodInterceptor
intercept
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Field Details
-
DEFAULT_METRIC_NAME
Default metric name.- Since:
- 1.1.0
- See Also:
-
EXCEPTION_TAG
Tag key for an exception.- Since:
- 1.1.0
- See Also:
-
-
Constructor Details
-
TimedInterceptor
Deprecated.Pass conversion service in new constructor- Parameters:
meterRegistry
- The meter registry
-
TimedInterceptor
@Inject protected TimedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micronaut.core.convert.ConversionService conversionService) - Parameters:
meterRegistry
- The meter registryconversionService
- The conversion service
-
-
Method Details