Removing KeyValuesProvider by marcingrzejszczak · Pull Request #3306 · micrometer-metrics/micrometer (original) (raw)

@marcingrzejszczak

we came to the conclusion that the ObservationConvention can serve the purpose of KeyValuesProvider. We don't need 2 separate interfaces. with this change ObservationConvention does what the KeyValuesProvider did, plus it has a default method getName so that we only rename an observation when ObservationConvention actually implements the getName method.