You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a bunch of things that are unimportant, but the asInt in dataPoints goes missing, and this is the metric value itself. Raising a separate issue as this feels like it could be a serde-and-protobuf-can-of-worms.
The text was updated successfully, but these errors were encountered:
Identified during #2432. Given this code:
And some sample data:
The assertion fails:
left: Object {"resourceMetrics": Array [Object {"resource": Object {"attributes": Array [Object {"key": String("service.name"), "value": Object {"stringValue": String("metrics-integration-test")}}]}, "scopeMetrics": Array [Object {"metrics": Array [Object {"name": String("counter_u64"), "sum": Object {"aggregationTemporality": Number(2), "dataPoints": Array [Object {"asInt": String("10"), "attributes": Array [Object {"key": String("mykey1"), "value": Object {"stringValue": String("myvalue1")}}, Object {"key": String("mykey2"), "value": Object {"stringValue": String("myvalue2")}}], "startTimeUnixNano": String("1734255506254812000"), "timeUnixNano": String("1734255533415552000")}], "isMonotonic": Bool(true)}}], "scope": Object {"name": String("test_u64_counter_meter")}}]}]} right: Object {"resourceMetrics": Array [Object {"resource": Object {"attributes": Array [Object {"key": String("service.name"), "value": Object {"stringValue": String("metrics-integration-test")}}], "droppedAttributesCount": Number(0)}, "schemaUrl": String(""), "scopeMetrics": Array [Object {"metrics": Array [Object {"description": String(""), "metadata": Array [], "name": String("counter_u64"), "sum": Object {"aggregationTemporality": Number(2), "dataPoints": Array [Object {"attributes": Array [Object {"key": String("mykey1"), "value": Object {"stringValue": String("myvalue1")}}, Object {"key": String("mykey2"), "value": Object {"stringValue": String("myvalue2")}}], "exemplars": Array [], "flags": Number(0), "startTimeUnixNano": String("1734255506254812000"), "timeUnixNano": String("1734255533415552000")}], "isMonotonic": Bool(true)}, "unit": String("")}], "schemaUrl": String(""), "scope": Object {"attributes": Array [], "droppedAttributesCount": Number(0), "name": String("test_u64_counter_meter"), "version": String("")}}]}]}
There's a bunch of things that are unimportant, but the
asInt
indataPoints
goes missing, and this is the metric value itself. Raising a separate issue as this feels like it could be a serde-and-protobuf-can-of-worms.The text was updated successfully, but these errors were encountered: