From 9c36dd86c972319bf6982d2ba45dfe77125db1bc Mon Sep 17 00:00:00 2001 From: Marcel Birkner Date: Fri, 15 Sep 2023 12:38:32 +0200 Subject: [PATCH] Update cmd/telemetrygen/internal/metrics/worker.go Co-authored-by: Pablo Baeyens --- cmd/telemetrygen/internal/metrics/worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/telemetrygen/internal/metrics/worker.go b/cmd/telemetrygen/internal/metrics/worker.go index 809cfef40e61..54ed1296f18e 100644 --- a/cmd/telemetrygen/internal/metrics/worker.go +++ b/cmd/telemetrygen/internal/metrics/worker.go @@ -54,8 +54,8 @@ func (w worker) simulateMetrics(res *resource.Resource, exporter sdkmetric.Expor Temporality: metricdata.DeltaTemporality, DataPoints: []metricdata.DataPoint[int64]{ { - StartTime: time.Now(), - Time: time.Now().Add(1 * time.Second), + StartTime: time.Now().Add(-1 * time.Second), + Time: time.Now(), Value: i, }, },