-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Metrics collector for Circuit Breaker #137
Conversation
I wouldn't design/implement this with just metrics in mind. Why not add more extensive listener/callback support to the circuit breaker (similar to retries) and people can use that for metrics or anything else then. |
Whenever as a generic mechanism, or specific to circuit breakers, metrics would be highly valuable. In addition, creating hystrix compatible stream would allow plugging it into hystrix dashboard |
I wish we can make this generic and keep failsafe self-contained. Give listener to user allows integration with any metrics provider. |
b6083ed
to
788e936
Compare
@sunng87 @whiskeysierra Any particular listeners you had in mind for this? |
import net.jodah.failsafe.internal.ClosedState; | ||
import net.jodah.failsafe.internal.HalfOpenState; | ||
import net.jodah.failsafe.internal.OpenState; | ||
import net.jodah.failsafe.internal.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably this should be made explicit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the wildcard import? My IDE does this too if there are several imports from the same package. The runtime cost should be nil.
@jhalterman I would make it more generic so that we can measure as well how long an attempt took. |
b9837fd
to
adcc61c
Compare
c9570db
to
9ba56e0
Compare
9259312
to
431e4f9
Compare
Closing as obsolete for now. |
No description provided.