From 141bcc959066ef32108227eff91bde6f8c823264 Mon Sep 17 00:00:00 2001 From: Michal Posluszny Date: Mon, 22 Jan 2024 17:00:54 +0100 Subject: [PATCH] null value test, changelog fix --- CHANGELOG.md | 2 +- sdk/metric/metricdata/metricdatatest/assertion_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e1163c6cb3..fb9630663ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixed -- Fixed missing Mix and Max values for `go.opentelemetry.io/otel/exporters/stdout/stdoutmetric` by introducing `MarshalText` and `MarshalJSON` for type `Extrema` in `go.opentelemetry.io/sdk/metric/metricdata`. (#4826) +- Fixed missing Mix and Max values for `go.opentelemetry.io/otel/exporters/stdout/stdoutmetric` by introducing `MarshalText` and `MarshalJSON` for type `Extrema` in `go.opentelemetry.io/sdk/metric/metricdata`. (#4827) ## [1.23.0-rc.1] 2024-01-18 diff --git a/sdk/metric/metricdata/metricdatatest/assertion_test.go b/sdk/metric/metricdata/metricdatatest/assertion_test.go index 584910962a0..4219375c4ba 100644 --- a/sdk/metric/metricdata/metricdatatest/assertion_test.go +++ b/sdk/metric/metricdata/metricdatatest/assertion_test.go @@ -1023,6 +1023,8 @@ func AssertMarshal[N int64 | float64](t *testing.T, expected string, i *metricda } func TestAssertMarshal(t *testing.T) { + AssertMarshal(t, "null", &metricdata.Extrema[int64]{}) + AssertMarshal(t, "-1", &minFloat64A) AssertMarshal(t, "3", &minFloat64B) AssertMarshal(t, "-9.999999", &minFloat64D)