resilience4j-spring-boot-demo icon indicating copy to clipboard operation
resilience4j-spring-boot-demo copied to clipboard

Circuitbreaker instance named "" (empty string) is not listed in health endpoint after application restart

Open s-nithya opened this issue 5 years ago • 0 comments

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.

s-nithya avatar Oct 20 '20 16:10 s-nithya