Skip to content

Commit 1f39b5d

Browse files
committed
Align MeterRegistryConfigurer's javadoc with its implementation
Closes gh-15017
1 parent 8ee57ac commit 1f39b5d

File tree

1 file changed

+4
-3
lines changed
  • spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics

1 file changed

+4
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/MeterRegistryConfigurer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
/**
3131
* Configurer to apply {@link MeterRegistryCustomizer customizers}, {@link MeterFilter
3232
* filters}, {@link MeterBinder binders} and {@link Metrics#addRegistry global
33-
* registration} to {@link MeterRegistry meter registries}. This configurer intentionally
34-
* skips {@link CompositeMeterRegistry} with the assumptions that the registries it
35-
* contains are beans and will be customized directly.
33+
* registration} to {@link MeterRegistry meter registries}.
3634
*
3735
* @author Jon Schneider
3836
* @author Phillip Webb
@@ -58,6 +56,9 @@ class MeterRegistryConfigurer {
5856
}
5957

6058
void configure(MeterRegistry registry) {
59+
if (registry instanceof CompositeMeterRegistry) {
60+
return;
61+
}
6162
// Customizers must be applied before binders, as they may add custom
6263
// tags or alter timer or summary configuration.
6364
customize(registry);

0 commit comments

Comments
 (0)