'Cannot see OPEN_TO_HALF_OPEN in Resilience4j with Spring boot

I cannot see any information about OPEN_TO_HALF_OPEN in Postman response in my Spring Boot Microservices with Resilience4j.

I've tried to implement a circuit breaker as Resilience4j but I cannot see any information about OPEN_TO_HALF_OPEN.

Where is the problem? How can I fix it?

Here is my resilience4j information defined in application.properties file of user service.

# resilience4j
resilience4j.circuitbreaker.instances.albums-ws.failure-rate-threshold=50
resilience4j.circuitbreaker.instances.albums-ws.automatic-transition-from-open-to-half-open-enabled=true
resilience4j.circuitbreaker.instances.albums-ws.wait-duration-in-open-state=10000ms
resilience4j.circuitbreaker.instances.albums-ws.sliding-window-type=COUNT_BASED
resilience4j.circuitbreaker.instances.albums-ws.sliding-window-size=2
resilience4j.circuitbreaker.instances.albums-ws.minimum-number-of-calls=1
resilience4j.circuitbreaker.instances.albums-ws.event-consumer-buffer-size=10

Here is the result.

{
            "circuitBreakerName": "albums-ws",
            "type": "ERROR",
            "creationTime": "2022-03-15T17:49:04.893241700+03:00[Europe/Istanbul]",
            "errorMessage": "feign.RetryableException: Connection refused: no further information executing GET http://albums-ws/users/07fe8177-bd25-4956-ac04-10f6ea328a9f/albums",
            "durationInMs": 4086,
            "stateTransition": null
        },
        {
            "circuitBreakerName": "albums-ws",
            "type": "FAILURE_RATE_EXCEEDED",
            "creationTime": "2022-03-15T17:49:04.895237400+03:00[Europe/Istanbul]",
            "errorMessage": null,
            "durationInMs": null,
            "stateTransition": null
        },
        {
            "circuitBreakerName": "albums-ws",
            "type": "STATE_TRANSITION",
            "creationTime": "2022-03-15T17:49:04.905235100+03:00[Europe/Istanbul]",
            "errorMessage": null,
            "durationInMs": null,
            "stateTransition": "CLOSED_TO_OPEN"
        }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source