circuitBreakers-info no longer show up under "/actuator/health" using Spring Boot 4.0.0-M2
When using the initial milestone releases of Spring Boot 4, I noticed that circuitBreaker information is lost under the endpoint /actuator/health. The information is, however, still available under the endpoint /actuator/circuitbreakers.
To reproduce, use the Spring 3 demo project: https://github.com/resilience4j/resilience4j-spring-boot3-demo
Start the demo app with
./gradlew bootrunVerify that Spring Boot v3.4.1 is used
Verify that the following request returns data as expected:
curl -s http://localhost:9080/actuator/circuitbreakers curl -s http://localhost:9080/actuator/health/circuitBreakers curl -s http://localhost:9080/actuator/health | jq .components.circuitBreakersStop the demo app
Update the Spring Boot version to
4.0.0-M2on line 4 in the filebuild.gradle.ktsUpdate the Gradle version to
8.14on line 3 in the filegradle/wrapper/gradle-wrapper.propertiesStart the demo app with
./gradlew bootrunVerify that Spring Boot v4.0.0-M2 is used
Verify that the following request still returns data as expected:
curl -s http://localhost:9080/actuator/circuitbreakersHowever, the following requests no longer return any data:
curl -s http://localhost:9080/actuator/health/circuitBreakers curl -s http://localhost:9080/actuator/health | jq .components.circuitBreakers
Source: resilience4j/resilience4j