From 167be294def5f303d4be67cd0483d6e226c47cce Mon Sep 17 00:00:00 2001 From: siprmp Date: Tue, 26 Mar 2024 15:26:50 -0400 Subject: [PATCH] this doesn't work, just switching branch but don't really need this --- .../resources/metrics/client_producer.json | 74 ++------------- .../resources/metrics/server_consumer.json | 93 ++++--------------- 2 files changed, 26 insertions(+), 141 deletions(-) diff --git a/test/app_signals/resources/metrics/client_producer.json b/test/app_signals/resources/metrics/client_producer.json index 80993b799..82c0ae559 100644 --- a/test/app_signals/resources/metrics/client_producer.json +++ b/test/app_signals/resources/metrics/client_producer.json @@ -32,67 +32,11 @@ "scopeMetrics": [ { "metrics": [ - { - "name": "Error", - "unit": "Milliseconds", - "sum": { - "dataPoints": [ - { - "attributes": [ - { - "key": "aws.span.kind", - "value": { - "stringValue": "CLIENT" - } - }, - { - "key": "aws.local.operation", - "value": { - "stringValue": "operation" - } - }, - { - "key": "aws.local.service", - "value": { - "stringValue": "service-name" - } - }, - { - "key": "aws.remote.operation", - "value": { - "stringValue": "remote-operation" - } - }, - { - "key": "aws.remote.service", - "value": { - "stringValue": "service-name-remote" - } - }, - { - "key": "aws.remote.target", - "value": { - "stringValue": "remote-target" - } - } - ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, - "values": [0], - "counts": [1], - "max": 0, - "min": 0, - "count": 1, - "sum": 0 - } - ] - } - }, { "name": "Fault", "unit": "Milliseconds", "sum": { - "dataPoints": [ + "data_points": [ { "attributes": [ { @@ -132,14 +76,14 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, - "values": [0], + "startTimeUnixNano": 1, + "timeUnixNano": 1, + "values": [1], "counts": [1], - "max": 0, - "min": 0, + "max": 1, + "min": 1, "count": 1, - "sum": 0 + "sum": 1 } ] } @@ -188,8 +132,8 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, + "startTimeUnixNano": 1, + "timeUnixNano": 1, "values": [1], "counts": [1], "max": 1, diff --git a/test/app_signals/resources/metrics/server_consumer.json b/test/app_signals/resources/metrics/server_consumer.json index efd10aec3..179f39496 100644 --- a/test/app_signals/resources/metrics/server_consumer.json +++ b/test/app_signals/resources/metrics/server_consumer.json @@ -32,68 +32,6 @@ "scopeMetrics": [ { "metrics": [ - { - "name": "Error", - "unit": "Count", - "sum": { - "dataPoints": [ - { - "attributes": [ - { - "key": "aws.span.kind", - "value": { - "stringValue": "SERVER" - } - }, - { - "key": "Operation", - "value": { - "stringValue": "operation" - } - }, - { - "key": "Service", - "value": { - "stringValue": "service-name" - } - }, - { - "key": "K8s.Namespace", - "value": { - "stringValue": "default" - } - }, - { - "key": "K8s.Pod", - "value": { - "stringValue": "pod-name" - } - }, - { - "key": "K8s.Node", - "value": { - "stringValue": "i-00000000000000000" - } - }, - { - "key": "K8s.Workload", - "value": { - "stringValue": "sample-app" - } - } - ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, - "values": [0], - "counts": [1], - "max": 0, - "min": 0, - "count": 1, - "sum": 0 - } - ] - } - }, { "name": "Fault", "unit": "Count", @@ -144,14 +82,14 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, - "values": [0], + "startTimeUnixNano": 1711468020777, + "timeUnixNano": 1711468020777, + "values": [1], "counts": [1], - "max": 0, - "min": 0, + "max": 1, + "min": 1, "count": 1, - "sum": 0 + "sum": 1 } ] } @@ -206,8 +144,8 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, + "startTimeUnixNano": 1711468020777, + "timeUnixNano": 1711468020777, "values": [1], "counts": [1], "max": 1, @@ -268,11 +206,14 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, - "sum": 1, + "startTimeUnixNano": 1711468020777, + "timeUnixNano": 1711468020777, + "values": [1], + "counts": [1], + "max": 1, "min": 1, - "max": 1 + "count": 1, + "sum": 1 } ] } @@ -327,8 +268,8 @@ } } ], - "startTimeUnixNano": START_TIME, - "timeUnixNano": START_TIME, + "startTimeUnixNano": 1711468020777, + "timeUnixNano": 1711468020777, "values": [1], "counts": [1], "max": 1,