in safeguard-impl/src/main/java/org/apache/safeguard/impl/retry/BaseRetryInterceptor.java [226:241]
public Model create(final InvocationContext context) {
final Retry retry = finder.findAnnotation(Retry.class, context);
final Retry configuredRetry = configurationMapper.map(retry, context.getMethod(), Retry.class);
final String metricsNameBase = "ft." + context.getMethod().getDeclaringClass().getCanonicalName() + "."
+ context.getMethod().getName() + ".retry.";
return new Model(
!configurationMapper.isEnabled(context.getMethod(), Retry.class),
configuredRetry,
metrics.counter(metricsNameBase + "callsSucceededNotRetried.total",
"The number of times the method was called and succeeded without retrying"),
metrics.counter(metricsNameBase + "callsSucceededRetried.total",
"The number of times the method was called and succeeded after retrying at least once"),
metrics.counter(metricsNameBase + "callsFailed.total",
"The number of times the method was called and ultimately failed after retrying"),
metrics.counter(metricsNameBase + "retries.total", "The total number of times the method was retried"));
}