Classes io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor and io.micrometer.core.instrument.binder.grpc.MetricCollectingClientInterceptor are not available in old versions of io.micrometer:micrometer-core (for example in 1.5.1) but io.micrometer.core.instrument.MeterRegistry used as a condition for GrpcClientMetricAutoConfiguration and GrpcServerMetricAutoConfiguration exists.
In result, application fails on start with ClassNotFoundException when there is MeterRegistry but no grpc interceptor classes.
Classes io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor and io.micrometer.core.instrument.binder.grpc.MetricCollectingClientInterceptor are not available in old versions of io.micrometer:micrometer-core (for example in 1.5.1) but io.micrometer.core.instrument.MeterRegistry used as a condition for GrpcClientMetricAutoConfiguration and GrpcServerMetricAutoConfiguration exists.
In result, application fails on start with ClassNotFoundException when there is MeterRegistry but no grpc interceptor classes.