If there are any beans of type GlobalObservationConvention they should be set on the ObservationRegistry#observationConfig

Comment From: adrianbob

Hi @marcingrzejszczak, @mhalbritter, Could I pick up this issue? If yes, could you provide a bit more details about how to tackle it?

Comment From: wilkinsona

Thanks for the offer, @adrianbob. I think this issue might be a bit stale as KeyValuesProvider has been removed from Micrometer. We'll need to sync up with @marcingrzejszczak who's out of the office at the moment and also wait till we're ready to move to Micrometer snapshots to pick up their latest changes.

Comment From: marcingrzejszczak

Yeah, I'm back. So the only "global" thing you can set on the ObservationConfig currently is Observation.GlobalObservationConvention. We've removed the KeyValuesProvider - it got merged into ObservationConvention.

Comment From: wilkinsona

https://github.com/spring-projects/spring-boot/pull/32048 has taken care of this.