public static Function<? super HttpClient, CircuitBreakerClient>
    newDecorator(CircuitBreaker circuitBreaker, CircuitBreakerRule rule) {
        requireNonNull(circuitBreaker, "circuitBreaker");
        return newDecorator(CircuitBreakerClientHandler.of(circuitBreaker), rule);
    }
Creates a new decorator using the specified {@link CircuitBreaker} instance and
{@link CircuitBreakerRule}.

<p>Since {@link CircuitBreaker} is a unit of failure detection, don't reuse the same instance for
unrelated services.
core/src/main/java/com/linecorp/armeria/client/circuitbreaker/CircuitBreakerClient.java