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.

Bug: Circuit breaker Dropwizard metrics show only first state values

See original GitHub issue

Circuit breaker Dropwizard metrics show correct values only if circuit breaker state does not change. After the change of state, metrics in metric registry still show old values of the first state, not current values.

Steps to reproduce:

  1. Register metric in Dropwizard registry with
    metricRegistry.registerAll(CircuitBreakerMetrics.ofCircuitBreaker(circuitBreaker));
    
  2. Change state of the circuit breaker

Small reproducer example: https://github.com/yuppie-flu/circuit-breaker-metrics-bug

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
yuppie-flucommented, Dec 11, 2017

Thank you for quick fix and nice library. It’s totally ok for me, looking forward to 0.11.0 release

0reactions
storozhukBMcommented, Dec 15, 2017

Hi @yuppie-flu, FYI 0.11.0 is live, so you can try this bug fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CircuitBreaker: How to treat exceptions as a success #568
Hi, I have the following setup: A 3rd party service (runs on localhost:8090/sample) and it always returns bad request (400).
Read more >
RELEASENOTES.adoc · BigBear/Resilience4j - Gitee.com
Issue #38: A CircuitBreaker records not permitted calls when the state is OPEN and emits a event for each attempt. The metric "numberOfNotPermittedCalls" ......
Read more >
Getting Started - Dropwizard Metrics
Getting Started will guide you through the process of adding Metrics to an existing application. We'll go through the various measuring instruments that ......
Read more >
1.3.0 release notes - ARMERIA.dev
The metrics of requests to a TransientService are not collected anymore by default. ... You can now apply CircuitBreaker per request path.
Read more >
Apache Solr Release Notes
Consult the lucene/CHANGES.txt file for additional, low level, changes in this release. New Features (12).
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