Skip to content

MetricsRetryListener problems #477

Closed
@VladimirLyubimov

Description

@VladimirLyubimov
  1. 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 to RetryListener calls on any exception (retryable or not) and class-name of this exception will be put into corresponding label. So exception tag with value distincted from "none" can not guarantee that retryable method has failed after all retry attempts
  2. 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 executing close on same instance of MetricsRetryListener. If T1 and T2 executes this.retryMeterProvider.tags(retryTags) and only after that register(this.meterRegistry) the results of T1 (who has called retryMeterProvider.tags first) will be overrided by T2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions