@ConditionalOnProperty(prefix = "grpc", name = "metricsA66Enabled", matchIfMissing = true)
    @GrpcGlobalClientInterceptor
    @Order(InterceptorOrder.ORDER_TRACING_METRICS)
    @ConditionalOnMissingBean
    public MetricsClientInterceptor metricsClientInterceptor(final MeterRegistry registry) {
        return new MetricsClientInterceptor(registry, Stopwatch::createUnstarted);
    }
Creates a {@link ClientInterceptor} that collects metrics about client attempts and client calls.

@param registry The registry used to create the metrics.
@return The newly created MetricsClientInterceptor bean.
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/autoconfigure/GrpcClientMetricAutoConfiguration.java