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
[exporter/awsemf] Drop metrics with NaN values (#26344)
**Description:** Metrics with NaN values for float types would cause the
EMF Exporter to error out during JSON Marshaling. This PR introduces a
change to drop metric values that contain NaN.
**Link to tracking Issue:** Fixes#26267
**Testing:** Added unit tests at several different points with varying
levels of specificity. Unit tests are quite verbose in this example but
I have followed the format of existing tests while doing very little
refactoring.
**Documentation:** Update README
Convert OpenTelemetry ```Int64DataPoints```, ```DoubleDataPoints```, ```SummaryDataPoints``` metrics datapoints into CloudWatch ```EMF``` structured log formats and send it to CloudWatch. Logs and Metrics will be displayed in CloudWatch console.
23
+
Convert OpenTelemetry ```Int64DataPoints```, ```DoubleDataPoints```, ```SummaryDataPoints``` metrics datapoints into
24
+
CloudWatch ```EMF``` structured log formats and send it to CloudWatch. Logs and Metrics will be displayed in
25
+
CloudWatch console. NaN values are not supported by CloudWatch EMF and will be dropped by the exporter.
// CalculateDeltaDatapoints retrieves the SummaryDataPoint at the given index and perform calculation with sum and count while retain the quantile value.
0 commit comments