Closed
Description
- In javadoc (add docs) registered tag
exception
described as "the thrown back to the caller (after all the retry attempts) exception class name". But it is not exactly right due toRetryListener
calls on any exception (retryable or not) and class-name of this exception will be put into corresponding label. Soexception
tag with value distincted from "none" can not guarantee that retryable method has failed after all retry attempts - Is
sample.stop(this.retryMeterProvider.tags(retryTags).register(this.meterRegistry));
in MetricsRetryListener is thread-safe? Suppose threre are two threads T1 and T2, which are executingclose
on same instance ofMetricsRetryListener
. If T1 and T2 executesthis.retryMeterProvider.tags(retryTags)
and only after thatregister(this.meterRegistry)
the results of T1 (who has called retryMeterProvider.tags first) will be overrided by T2