Right now, it's conditional on the class. It must be conditional on the presence of a MeterRegistry bean instead.

Comment From: tzolov

Thanks @ThomasVitale