Commit 1f39b5dd authored by Andy Wilkinson's avatar Andy Wilkinson

Align MeterRegistryConfigurer's javadoc with its implementation

Closes gh-15017
parent 8ee57ac5
...@@ -30,9 +30,7 @@ import org.springframework.boot.util.LambdaSafe; ...@@ -30,9 +30,7 @@ import org.springframework.boot.util.LambdaSafe;
/** /**
* Configurer to apply {@link MeterRegistryCustomizer customizers}, {@link MeterFilter * Configurer to apply {@link MeterRegistryCustomizer customizers}, {@link MeterFilter
* filters}, {@link MeterBinder binders} and {@link Metrics#addRegistry global * filters}, {@link MeterBinder binders} and {@link Metrics#addRegistry global
* registration} to {@link MeterRegistry meter registries}. This configurer intentionally * registration} to {@link MeterRegistry meter registries}.
* skips {@link CompositeMeterRegistry} with the assumptions that the registries it
* contains are beans and will be customized directly.
* *
* @author Jon Schneider * @author Jon Schneider
* @author Phillip Webb * @author Phillip Webb
...@@ -58,6 +56,9 @@ class MeterRegistryConfigurer { ...@@ -58,6 +56,9 @@ class MeterRegistryConfigurer {
} }
void configure(MeterRegistry registry) { void configure(MeterRegistry registry) {
if (registry instanceof CompositeMeterRegistry) {
return;
}
// Customizers must be applied before binders, as they may add custom // Customizers must be applied before binders, as they may add custom
// tags or alter timer or summary configuration. // tags or alter timer or summary configuration.
customize(registry); customize(registry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment