Package io.micrometer.core.annotation
Annotation Type Counted
-
@Inherited @Target(METHOD) @Retention(RUNTIME) public @interface CountedAnnotated methods would expose a few counter metrics about their execution status. By default, both failed and successful attempts would be reported. Switching therecordFailuresOnly()totruewould instruct the corresponding aspect to only record the failed attempts.- Since:
- 1.2.0
- See Also:
CountedAspect
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringdescriptionAn optional description for what the underlying counter is going to record.booleanrecordFailuresOnlyBy default, both failed and successful attempts are recorded.java.lang.StringvalueRepresents the metric name for the to-be-recorded counters.
-