mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Align MeterRegistryConfigurer's javadoc with its implementation
Closes gh-15017
This commit is contained in:
parent
8ee57ac574
commit
1f39b5dd7a
@ -30,9 +30,7 @@ import org.springframework.boot.util.LambdaSafe;
|
||||
/**
|
||||
* Configurer to apply {@link MeterRegistryCustomizer customizers}, {@link MeterFilter
|
||||
* filters}, {@link MeterBinder binders} and {@link Metrics#addRegistry global
|
||||
* registration} to {@link MeterRegistry meter registries}. This configurer intentionally
|
||||
* skips {@link CompositeMeterRegistry} with the assumptions that the registries it
|
||||
* contains are beans and will be customized directly.
|
||||
* registration} to {@link MeterRegistry meter registries}.
|
||||
*
|
||||
* @author Jon Schneider
|
||||
* @author Phillip Webb
|
||||
@ -58,6 +56,9 @@ class MeterRegistryConfigurer {
|
||||
}
|
||||
|
||||
void configure(MeterRegistry registry) {
|
||||
if (registry instanceof CompositeMeterRegistry) {
|
||||
return;
|
||||
}
|
||||
// Customizers must be applied before binders, as they may add custom
|
||||
// tags or alter timer or summary configuration.
|
||||
customize(registry);
|
||||
|
Loading…
Reference in New Issue
Block a user