Package io.micrometer.core.aop
Class TimedAspect
java.lang.Object
io.micrometer.core.aop.TimedAspect
AspectJ aspect for intercepting types or methods annotated with
@Timed.- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate aTimedAspectinstance withMetrics.globalRegistry.TimedAspect(MeterRegistry registry) TimedAspect(MeterRegistry registry, Function<org.aspectj.lang.ProceedingJoinPoint, Iterable<Tag>> tagsBasedOnJoinPoint) -
Method Summary
-
Field Details
-
DEFAULT_METRIC_NAME
- See Also:
-
DEFAULT_EXCEPTION_TAG_VALUE
- See Also:
-
EXCEPTION_TAG
Tag key for an exception.- Since:
- 1.1.0
- See Also:
-
-
Constructor Details
-
TimedAspect
public TimedAspect()Create aTimedAspectinstance withMetrics.globalRegistry.- Since:
- 1.2.0
-
TimedAspect
-
TimedAspect
public TimedAspect(MeterRegistry registry, Function<org.aspectj.lang.ProceedingJoinPoint, Iterable<Tag>> tagsBasedOnJoinPoint)
-
-
Method Details
-
timedMethod
- Throws:
Throwable
-