danielfm / pybreaker

Python implementation of the Circuit Breaker pattern.
BSD 3-Clause "New" or "Revised" License
512 stars 74 forks source link

proposal: adding a name property to CircuitBreaker #30

Closed chrisvaughn closed 6 years ago

chrisvaughn commented 6 years ago

Thanks for the great library. I'm adding logging to our use of circuit breakers so that we can see just how often states are changing. To make our logs more informative I've subclassed CircuitBreaker to add a "name" property that I can use in logs, statsd counters, etc. Is there any interest in adding this to CircuitBreaker? If so, I'll create a PR.

danielfm commented 6 years ago

Yes, please! :)