@Bean
        public MetricCollectingServiceConfigurator metricCollectingServiceConfigurator() {
            return builder -> builder
                    .successFunction((context, log) -> {
                        final int statusCode = log.responseHeaders().status().code();
                        return (statusCode >= 200 && statusCode < 400) || statusCode == 404;
                    });
        }
This uses {@link ArmeriaAutoConfiguration} for integration tests.
application-autoConfTest.yml will be loaded with minimal settings to make it work.
spring/boot3-autoconfigure/src/test/java/com/linecorp/armeria/spring/ArmeriaAutoConfigurationTest.java