From 796d400318f89cbeb8b811fb83d9a7e6746b1212 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 14 Sep 2017 16:11:19 -0700 Subject: [PATCH] Use correct `percentilesTime` call Update `MetricsClientHttpRequestInterceptor` to use `percentilesTime` rather than `percentiles`. See gh-9970 --- .../metrics/web/client/MetricsClientHttpRequestInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/client/MetricsClientHttpRequestInterceptor.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/client/MetricsClientHttpRequestInterceptor.java index a476aef97009..148884584c0b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/client/MetricsClientHttpRequestInterceptor.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/client/MetricsClientHttpRequestInterceptor.java @@ -102,7 +102,7 @@ private Timer.Builder getTimeBuilder(HttpRequest request, .tags(this.tagProvider.getTags(urlTemplate.get(), request, response)) .description("Timer of RestTemplate operation"); if (this.recordPercentiles) { - builder = builder.histogram(Histogram.percentiles()); + builder = builder.histogram(Histogram.percentilesTime()); } return builder; }