@ConditionalOnProperty(prefix = "grpc", name = "metricsA66Enabled", matchIfMissing = true)
    @Bean
    public GrpcServerConfigurer streamTracerFactoryConfigurer(final MeterRegistry registry) {
        MetricsServerStreamTracers metricsServerStreamTracers = new MetricsServerStreamTracers(
                Stopwatch::createUnstarted);
        return builder -> builder
                .addStreamTracerFactory(metricsServerStreamTracers.getMetricsServerTracerFactory(registry));
    }
Auto configuration class for Spring-Boot. This allows zero config server metrics for gRPC services.

@author Daniel Theuke (daniel.theuke@heuboe.de)
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcServerMetricAutoConfiguration.java