Class CountedInterceptor
java.lang.Object
io.micronaut.configuration.metrics.micrometer.intercept.CountedInterceptor
- All Implemented Interfaces:
io.micronaut.aop.Interceptor<Object,
,Object> io.micronaut.aop.MethodInterceptor<Object,
,Object> io.micronaut.core.order.Ordered
@RequiresMetrics
@InterceptorBean(io.micrometer.core.annotation.Counted.class)
public class CountedInterceptor
extends Object
implements io.micronaut.aop.MethodInterceptor<Object,Object>
Implements support for
Counted
as AOP advice.- Since:
- 1.1.0
- Author:
- graemerocher
-
Field Summary
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
ConstructorDescriptionCountedInterceptor
(io.micrometer.core.instrument.MeterRegistry meterRegistry) Deprecated.Pass conversion service in new constructorCountedInterceptor
(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
- See Also:
-
RESULT_TAG
- See Also:
-
-
Constructor Details
-
CountedInterceptor
Deprecated.Pass conversion service in new constructor- Parameters:
meterRegistry
- The meter registry
-
CountedInterceptor
@Inject public CountedInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micronaut.core.convert.ConversionService conversionService) - Parameters:
meterRegistry
- The meter registryconversionService
- The conversion service
-
-
Method Details