Drop recordRequestPercentiles property
Drop the `recordRequestPercentiles` property as it overlaps with the property based `MeterFilter` support. Fixes gh-11982
This commit is contained in:
@@ -89,12 +89,6 @@ public class MetricsProperties {
|
||||
|
||||
public static class Client {
|
||||
|
||||
/**
|
||||
* Whether instrumented requests record percentiles histogram buckets by
|
||||
* default.
|
||||
*/
|
||||
private boolean recordRequestPercentiles;
|
||||
|
||||
/**
|
||||
* Name of the metric for sent requests.
|
||||
*/
|
||||
@@ -107,14 +101,6 @@ public class MetricsProperties {
|
||||
*/
|
||||
private int maxUriTags = 100;
|
||||
|
||||
public boolean isRecordRequestPercentiles() {
|
||||
return this.recordRequestPercentiles;
|
||||
}
|
||||
|
||||
public void setRecordRequestPercentiles(boolean recordRequestPercentiles) {
|
||||
this.recordRequestPercentiles = recordRequestPercentiles;
|
||||
}
|
||||
|
||||
public String getRequestsMetricName() {
|
||||
return this.requestsMetricName;
|
||||
}
|
||||
|
||||
@@ -69,8 +69,7 @@ public class RestTemplateMetricsAutoConfiguration {
|
||||
RestTemplateExchangeTagsProvider restTemplateTagConfigurer,
|
||||
MetricsProperties properties) {
|
||||
return new MetricsRestTemplateCustomizer(meterRegistry, restTemplateTagConfigurer,
|
||||
properties.getWeb().getClient().getRequestsMetricName(),
|
||||
properties.getWeb().getClient().isRecordRequestPercentiles());
|
||||
properties.getWeb().getClient().getRequestsMetricName());
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user