From 4674860ed7c8ac8b3e692e38075db01c2db16667 Mon Sep 17 00:00:00 2001 From: Mateusz Zakarczemny Date: Mon, 4 Nov 2024 17:49:49 +0100 Subject: [PATCH] Use recordResponseTimeMetric instead recordMetric in NewRelic agent. It seams that ``` public static void recordResponseTimeMetric(String name, long millis) { getAgent().getMetricAggregator().recordMetric(name, millis); } ``` recordResponseTimeMetric calls recordMetric in MetricAggregator instead of recordResponseTimeMetric. --- newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java b/newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java index b4df7065a7..934b194ee9 100644 --- a/newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java +++ b/newrelic-api/src/main/java/com/newrelic/api/agent/NewRelic.java @@ -47,7 +47,7 @@ public static void recordMetric(String name, float value) { * @since 1.3.0 */ public static void recordResponseTimeMetric(String name, long millis) { - getAgent().getMetricAggregator().recordMetric(name, millis); + getAgent().getMetricAggregator().recordResponseTimeMetric(name, millis); } /**