Skip to content

Commit 2f29a49

Browse files
committed
Remove APIs deprecated for removal in 3.5
Closes gh-43788
1 parent f301b2a commit 2f29a49

File tree

61 files changed

+29
-3522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+29
-3522
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ dependencies {
4949
optional("io.micrometer:micrometer-registry-new-relic")
5050
optional("io.micrometer:micrometer-registry-otlp")
5151
optional("io.micrometer:micrometer-registry-prometheus")
52-
optional("io.micrometer:micrometer-registry-prometheus-simpleclient")
5352
optional("io.micrometer:micrometer-registry-stackdriver") {
5453
exclude group: "commons-logging", module: "commons-logging"
5554
exclude group: "javax.annotation", module: "javax.annotation-api"

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,10 +78,8 @@ PrometheusRegistry prometheusRegistry() {
7878
@ConditionalOnAvailableEndpoint(PrometheusScrapeEndpoint.class)
7979
static class PrometheusScrapeEndpointConfiguration {
8080

81-
@SuppressWarnings("removal")
8281
@Bean
83-
@ConditionalOnMissingBean({ PrometheusScrapeEndpoint.class,
84-
org.springframework.boot.actuate.metrics.export.prometheus.PrometheusSimpleclientScrapeEndpoint.class })
82+
@ConditionalOnMissingBean
8583
PrometheusScrapeEndpoint prometheusEndpoint(PrometheusRegistry prometheusRegistry,
8684
PrometheusConfig prometheusConfig) {
8785
return new PrometheusScrapeEndpoint(prometheusRegistry, prometheusConfig.prometheusProperties());

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

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@
2222

2323
import org.springframework.boot.actuate.metrics.export.prometheus.PrometheusPushGatewayManager.ShutdownOperation;
2424
import org.springframework.boot.context.properties.ConfigurationProperties;
25-
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
2625

2726
/**
2827
* {@link ConfigurationProperties @ConfigurationProperties} for configuring metrics export
@@ -52,13 +51,6 @@ public class PrometheusProperties {
5251
*/
5352
private final Pushgateway pushgateway = new Pushgateway();
5453

55-
/**
56-
* Histogram type for backing DistributionSummary and Timer.
57-
* @deprecated since 3.3.0 for removal in 3.5.0
58-
*/
59-
@Deprecated(since = "3.3.0", forRemoval = true)
60-
private HistogramFlavor histogramFlavor = HistogramFlavor.Prometheus;
61-
6254
/**
6355
* Additional properties to pass to the Prometheus client.
6456
*/
@@ -77,17 +69,6 @@ public void setDescriptions(boolean descriptions) {
7769
this.descriptions = descriptions;
7870
}
7971

80-
@Deprecated(since = "3.3.0", forRemoval = true)
81-
@DeprecatedConfigurationProperty(since = "3.3.0",
82-
reason = "No longer supported. Works only when using the Prometheus simpleclient.")
83-
public HistogramFlavor getHistogramFlavor() {
84-
return this.histogramFlavor;
85-
}
86-
87-
public void setHistogramFlavor(HistogramFlavor histogramFlavor) {
88-
this.histogramFlavor = histogramFlavor;
89-
}
90-
9172
public Duration getStep() {
9273
return this.step;
9374
}
@@ -223,16 +204,4 @@ public void setShutdownOperation(ShutdownOperation shutdownOperation) {
223204

224205
}
225206

226-
/**
227-
* Prometheus Histogram flavor.
228-
*
229-
* @deprecated since 3.3.0 for removal in 3.5.0
230-
*/
231-
@Deprecated(since = "3.3.0", forRemoval = true)
232-
public enum HistogramFlavor {
233-
234-
Prometheus, VictoriaMetrics
235-
236-
}
237-
238207
}

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

Lines changed: 0 additions & 162 deletions
This file was deleted.

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

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)