question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide aggregated retry.calls

See original GitHub issue

Resilience4j version: 1.2.0 Java version: 11.0.3 Problem description: As some systems expects aggregated data the retry.calls metric should return for them aggregated value. Here you can read more about this problem: https://micrometer.io/docs/concepts#rate-aggregation Currently this metric is Gauge. In my case the monitoring system is a newrelic. I can not make readable dashboard without such a metric. How do you about providing additional metric retry.calls.aggregated? Which returns how many calls have been processed from last execution. I am going to provide example implementation.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:31 (31 by maintainers)

github_iconTop GitHub Comments

1reaction
wyhasanycommented, Jan 17, 2020

I’ve opened another PR. @RobWin could you review it please? 😃

1reaction
RobWincommented, Jan 17, 2020

Yes, you are right. I also don’t like the idea that the Retry decorator emits an event on every successful call only to be able to measure the call rate. It puts too much unnecessary pressure on memory and garbage collection. I thought you are only interested in the rate of calls which have been retried. If you need a decorator which measures the rate and maybe also response times of all calls, you should better implement a new Timer decorator especially for this purpose.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REL05-BP03 Control and limit retry calls - Reliability Pillar
Control and limit retry calls. Use exponential backoff to retry after progressively longer intervals. Introduce jitter to randomize those retry intervals, and ...
Read more >
Retry steps | Workflows - Google Cloud
A retry policy is composed of a predicate that defines which error codes should be retried and default values for the retry configuration...
Read more >
Retry Requests Fearlessly with Idempotence - Medium
A practical guide to being fearless in the presence of duplicate service requests. Explore idempotence in DDD, CQRS, and Event Sourcing.
Read more >
Cleanest way to write retry logic? - Stack Overflow
Blanket catch statements that simply retry the same call can be dangerous if used as a general exception handling mechanism. Having said that,...
Read more >
Gateway Aggregation pattern - Azure Architecture Center
When to use this pattern · You want to reduce the number of calls between a client and a single service across multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found