From e67bca121bd3ba74594a9df0c7f13f88e6339505 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sun, 23 Jul 2023 17:04:53 +0800 Subject: [PATCH] Fix description of started and ready time metrics See gh-36507 --- .../actuate/metrics/startup/StartupTimeMetricsListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListener.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListener.java index 63ba53fdb53..b8cd0e2063d 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListener.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListener.java @@ -103,12 +103,12 @@ public class StartupTimeMetricsListener implements SmartApplicationListener { } private void onApplicationStarted(ApplicationStartedEvent event) { - registerGauge(this.startedTimeMetricName, "Time taken (ms) to start the application", event.getTimeTaken(), + registerGauge(this.startedTimeMetricName, "Time taken to start the application", event.getTimeTaken(), event.getSpringApplication()); } private void onApplicationReady(ApplicationReadyEvent event) { - registerGauge(this.readyTimeMetricName, "Time taken (ms) for the application to be ready to service requests", + registerGauge(this.readyTimeMetricName, "Time taken for the application to be ready to service requests", event.getTimeTaken(), event.getSpringApplication()); }