mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 09:09:01 +00:00
Previously, all MeterFilter beans were applied to all MeterRegistry beans. As a result, when a composite registry was auto-configured, both the composite and all of its delegates would have the same MeterFilters applied. This made it impossible for one of the delegate registries to have a locally-configured filter that would allow a meter that would be denied by one of the MeterFilter beans applied to the composite. This commit update MeterRegistryConfigurer to skips the auto-configured composite meter registry when applying MeterFilter beans to MeterRegistry beans. As a result, the composite's filters will no longer deny a meter before it reaches a delegate that would have accepted it due to one of its locally-configured filters. Closes gh-23381