Skip to content

Commit e1aef9d

Browse files
committed
Rename parameter
See gh-40904
1 parent 7d96789 commit e1aef9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/prometheus/PrometheusScrapeEndpoint.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry) {
6767
/**
6868
* Creates a new {@link PrometheusScrapeEndpoint}.
6969
* @param prometheusRegistry the Prometheus registry to use
70-
* @param expositionFormatsProperties the properties used to configure Prometheus'
70+
* @param exporterProperties the properties used to configure Prometheus'
7171
* {@link ExpositionFormats}
7272
*/
73-
public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry, Properties expositionFormatsProperties) {
73+
public PrometheusScrapeEndpoint(PrometheusRegistry prometheusRegistry, Properties exporterProperties) {
7474
this.prometheusRegistry = prometheusRegistry;
75-
PrometheusProperties prometheusProperties = (expositionFormatsProperties != null)
76-
? PrometheusPropertiesLoader.load(expositionFormatsProperties) : PrometheusPropertiesLoader.load();
75+
PrometheusProperties prometheusProperties = (exporterProperties != null)
76+
? PrometheusPropertiesLoader.load(exporterProperties) : PrometheusPropertiesLoader.load();
7777
this.expositionFormats = ExpositionFormats.init(prometheusProperties.getExporterProperties());
7878
}
7979

0 commit comments

Comments
 (0)