Skip to content
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

Defining state in application.yml #74

Open
lawrencecosio opened this issue Nov 22, 2023 · 2 comments
Open

Defining state in application.yml #74

lawrencecosio opened this issue Nov 22, 2023 · 2 comments

Comments

@lawrencecosio
Copy link

Hi

Is there a way to specify the state of a circuit breaker in application.yml? I wanted to deploy the circuitBreaker in monitor state before enabling them after a couple of days.

Thanks,
Lawrence

@RobWin
Copy link
Member

RobWin commented Nov 22, 2023

Hi, no it's not possible. Custom code is needed to do so.

@lawrencecosio
Copy link
Author

Thanks. I was trying to write custom code for it but it seems the CircuitBreakerRegistry gets populated when the feign client we created a circuit breaker for gets hit.

I am just wondering how I can write the custom code so that when a circuitbreaker is created, I can immediately set its state to metrics only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants