title: resilience4J + Spring Boot 2.x
body: <p>I am using resilience4j for fault tolerance in reative API spring boot application. I can see that all events are treated as success even though Mono is returning errors.</p>
  
  <p><strong>service layer</strong></p>
  
  <pre><code>    @Override
      @CircuitBreaker(name = "member-service")
      public Mono&lt;String&gt; getMemberInfo(String memberId) {
          return wsClient.getMemberInfo(memberId); 
         // This call will return WSException whenever there is 4XX or 5XX error
      }
  </code></pre>
  
  <p><strong>application.yml</strong> configuration</p>
  
  <pre><code>resilience4j.circuitbreaker:
    backends:
      member-service:
        ringBufferSizeInClosedState: 1
        ringBufferSizeInHalfOpenState: 2
        waitInterval: 10000
        failureRateThreshold: 75
        registerHealthIndicator: true
        recordExceptions:
          - com.xx.WSException
        ignoreExceptions:
          - com.xxx.WSClientException
  </code></pre>
  
  <p>I intentionally changed URI path, so that WebClient always return 404 error, which throws WSException. When I see below endpoint, type is always SUCCESS. Did I miss something?</p>
  
  <p><a href="http://localhost:8088/circuitbreaker-events/member-service" rel="nofollow noreferrer">http://localhost:8088/circuitbreaker-events/member-service</a></p>
  
  <pre><code>{
  "circuitBreakerEvents": [
  {
  "circuitBreakerName": "member-service",
  "type": "SUCCESS",
  "creationTime": "2019-02-18T21:56:21.588+05:30[Asia/Calcutta]",
  "durationInMs": 6
  },
  {
  "circuitBreakerName": "member-service",
  "type": "SUCCESS",
  "creationTime": "2019-02-18T21:56:21.588+05:30[Asia/Calcutta]",
  "durationInMs": 5
  },
  {
  "circuitBreakerName": "member-service",
  "type": "SUCCESS",
  "creationTime": "2019-02-18T21:56:21.588+05:30[Asia/Calcutta]",
  "durationInMs": 6
  }
  }
  </code></pre>