resilience4j-spring-boot-demo
resilience4j-spring-boot-demo copied to clipboard
Circuitbreaker instance named "" (empty string) is not listed in health endpoint after application restart
In a Spring Boot application, we have created 2 circuitbreaker instances "testCB" and ""(empty string). "" instance will use default configuration provided by the resilience4j library and custom configuration is defined for "testCB".
We created "" - (@CircuitBreaker(name="") instance to get the default configuration.
In application.properties, we have specified the below properties resilience4j.circuitbreaker.configs.default.registerHealthIndicator=true resilience4j.circuitbreaker.instances.testCB.registerHealthIndicator=true
Once the application is started, in actuator/health endpoint only details of testCB is displayed whereas "" instance details are displayed only after an event is registered in that instance.