aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-monitoring
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2021-12-20 10:09:54 +0100
committersonartech <sonartech@sonarsource.com>2021-12-20 20:03:08 +0000
commitdfe37e01a74c746c860250627ec3a28fdb0eea8d (patch)
tree1f9ad25fd4580cac72758a9ac26386036bf55baf /server/sonar-webserver-monitoring
parent7d7b7f87d4340a0190dab92f7225242e55c39558 (diff)
downloadsonarqube-dfe37e01a74c746c860250627ec3a28fdb0eea8d.tar.gz
sonarqube-dfe37e01a74c746c860250627ec3a28fdb0eea8d.zip
SONAR-15688 changed uuid to key of the project for reporting duration of ce task
Diffstat (limited to 'server/sonar-webserver-monitoring')
-rw-r--r--server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ce/RecentTasksDurationTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ce/RecentTasksDurationTask.java b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ce/RecentTasksDurationTask.java
index 1aae8cc0fea..998323862fb 100644
--- a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ce/RecentTasksDurationTask.java
+++ b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ce/RecentTasksDurationTask.java
@@ -84,7 +84,7 @@ public class RecentTasksDurationTask extends ComputeEngineMetricsTask {
String mainComponentKey = componentUuidAndKeys.get(mainComponentUuid);
requireNonNull(mainComponentKey);
- metrics.observeComputeEngineTaskDuration(executionTimeMs, task.getTaskType(), mainComponentUuid);
+ metrics.observeComputeEngineTaskDuration(executionTimeMs, task.getTaskType(), mainComponentKey);
} catch (RuntimeException e) {
LOGGER.warn("Can't report metric data for a CE task with component uuid " + mainComponentUuid, e);
}