diff --git a/CHANGELOG.md b/CHANGELOG.md index f39e2aefabd..5826128dddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The sequential timing check of timestamps in the stdout exporter are now setup explicitly to be sequential (#1571). (#1572) - Windows build of Jaeger tests now compiles with OS specific functions (#1576). (#1577) +- The sequential timing check of timestamps of go.opentelemetry.io/otel/sdk/metric/aggregator/lastvalue are now setup explicitly to be sequential (#1578). (#1579) ## [0.17.0] - 2020-02-12 diff --git a/sdk/metric/aggregator/lastvalue/lastvalue_test.go b/sdk/metric/aggregator/lastvalue/lastvalue_test.go index 94baa69b71d..32717fad8ba 100644 --- a/sdk/metric/aggregator/lastvalue/lastvalue_test.go +++ b/sdk/metric/aggregator/lastvalue/lastvalue_test.go @@ -101,6 +101,8 @@ func TestLastValueMerge(t *testing.T) { first1.AddNumber(profile.NumberKind, first2) aggregatortest.CheckedUpdate(t, agg1, first1, descriptor) + // Ensure these should not have the same timestamp. + time.Sleep(time.Nanosecond) aggregatortest.CheckedUpdate(t, agg2, first2, descriptor) require.NoError(t, agg1.SynchronizedMove(ckpt1, descriptor))