spring-boot/spring-boot-project
Andy Wilkinson 33fb1fa9a3 Avoid creating meter binders before registry has been customized
Previously, MeterRegistryPostProcessor would trigger the creation of all
meter binders and meter registry customizers before applying the
customizers and calling the binders. In some situations with complex
dependency graphs where the creation of a binder and the injection of
its dependencies inadvertently triggered some meter binding, this
could result in meters being bound before the registry had been
customized.

This commit reworks MeterRegistryPostProcessor and MeterRegistryConfigurer
to defer the retrieval of registry customizers and meter binders until
just before they are needed. As a result, customizers are now retrieved
and applied before the binders are retrieved.

Closes gh-15483
2018-12-19 16:47:30 +00:00
..
spring-boot Avoid unnecessary usage of ReflectionTestUtils 2018-12-17 17:07:23 +01:00
spring-boot-actuator Add details in Jest ElasticSearch HealthIndicator 2018-12-11 11:51:57 +01:00
spring-boot-actuator-autoconfigure Avoid creating meter binders before registry has been customized 2018-12-19 16:47:30 +00:00
spring-boot-autoconfigure Avoid unnecessary usage of ReflectionTestUtils 2018-12-17 17:07:23 +01:00
spring-boot-cli Update copyright year for changed files 2018-10-26 16:35:28 -07:00
spring-boot-dependencies Start building against Spring Framework 5.1.4 snapshots 2018-12-19 12:52:13 +00:00
spring-boot-devtools Revert DevTools polish 2018-10-29 18:37:58 -07:00
spring-boot-docs Fix indent of WebServiceTemplate section 2018-12-06 09:06:02 +01:00
spring-boot-parent Add Kotlin DSL examples to Gradle Plugin's documentation 2018-10-05 10:41:13 +01:00
spring-boot-properties-migrator Remove test starter from core module 2018-12-14 08:44:43 +01:00
spring-boot-starters Add reference to JaVers starter 2018-12-05 08:56:50 +01:00
spring-boot-test Merge branch '2.0.x' into 2.1.x 2018-12-11 08:52:58 +01:00
spring-boot-test-autoconfigure Avoid unnecessary usage of ReflectionTestUtils 2018-12-17 17:07:23 +01:00
spring-boot-tools Merge branch '2.0.x' into 2.1.x 2018-12-17 18:26:36 +01:00
pom.xml Restore import-control checkstyle 2018-10-02 10:30:14 -07:00