public LoggingServiceBuilder failureSamplingRate(float failureSamplingRate) {
        checkArgument(0.0 <= failureSamplingRate && failureSamplingRate <= 1.0,
                      "failureSamplingRate: %s (expected: 0.0 <= failureSamplingRate <= 1.0)",
                      failureSamplingRate);
        return failureSampler(Sampler.random(failureSamplingRate));
    }
Sets the rate at which to sample requests to log. Any number between {@code 0.0} and {@code 1.0} will
cause a random sample of the failure requests to be logged.
core/src/main/java/com/linecorp/armeria/server/logging/LoggingServiceBuilder.java