-
Notifications
You must be signed in to change notification settings - Fork 534
Closed
Description
- In javadoc (add docs) registered tag
exceptiondescribed as "the thrown back to the caller (after all the retry attempts) exception class name". But it is not exactly right due toRetryListenercalls on any exception (retryable or not) and class-name of this exception will be put into corresponding label. Soexceptiontag 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 executingcloseon 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