From 12c8a04b611209f4b17348731bb298150c49d526 Mon Sep 17 00:00:00 2001 From: Paramadon Date: Wed, 17 Apr 2024 16:37:39 -0400 Subject: [PATCH] Wrong data type, this fix generate correct metrics for Latency, Error, and Fault --- .../resources/metrics/client_producer.json | 13 +++++++------ .../resources/metrics/server_consumer.json | 17 +++++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/test/app_signals/resources/metrics/client_producer.json b/test/app_signals/resources/metrics/client_producer.json index 8a39c60d6..e75d43125 100644 --- a/test/app_signals/resources/metrics/client_producer.json +++ b/test/app_signals/resources/metrics/client_producer.json @@ -34,8 +34,8 @@ "metrics": [ { "name": "Error", - "unit": "Milliseconds", - "sum": { + "unit": "", + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -87,8 +87,8 @@ }, { "name": "Fault", - "unit": "Milliseconds", - "sum": { + "unit": "", + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -141,7 +141,7 @@ { "name": "Latency", "unit": "Milliseconds", - "sum": { + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -196,4 +196,5 @@ ] } ] -} \ No newline at end of file +} + diff --git a/test/app_signals/resources/metrics/server_consumer.json b/test/app_signals/resources/metrics/server_consumer.json index 2d3cd0b79..6adb15d49 100644 --- a/test/app_signals/resources/metrics/server_consumer.json +++ b/test/app_signals/resources/metrics/server_consumer.json @@ -34,8 +34,8 @@ "metrics": [ { "name": "Error", - "unit": "Milliseconds", - "sum": { + "unit": "", + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -93,8 +93,8 @@ }, { "name": "Fault", - "unit": "Milliseconds", - "sum": { + "unit": "", + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -153,7 +153,7 @@ { "name": "Latency", "unit": "Milliseconds", - "sum": { + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -212,7 +212,7 @@ { "name": "Latency", "unit": "Milliseconds", - "sum": { + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -271,7 +271,7 @@ { "name": "Latency", "unit": "Milliseconds", - "sum": { + "exponential_histogram": { "dataPoints": [ { "attributes": [ @@ -332,4 +332,5 @@ ] } ] -} \ No newline at end of file +} +