@Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=Timeables.class) public @interface Timeable
| Modifier and Type | Optional Element and Description |
|---|---|
MetricsMode |
mode
Defines whether method execution time should be registered in exceptional case or not.
|
java.lang.String |
name
Constant part of metric instance identifier.
|
java.lang.String |
nameSuffixExpression
Expression for changeable part of metric that depend on runtime, can be received via SpEL expression.
|
public abstract java.lang.String name
nameSuffixExpression() is used.public abstract java.lang.String nameSuffixExpression
name() is used for metrics identifierpublic abstract MetricsMode mode
MetricsMode.ERROR_FREE
that registers metric only in normal method execution.
nameSuffixExpression() should be used with caution when MetricsMode.ERROR_PRONE because
metric context does not include result of method execution while registers error.