From eb5cd674b07ba3e1f0970d5d0879fd221fe74cc3 Mon Sep 17 00:00:00 2001 From: afzalabbasi Date: Fri, 28 Jun 2024 15:08:43 +0500 Subject: [PATCH] fix duration bug in case of golang profile. --- receiver/pyroscopereceiver/receiver.go | 1 - 1 file changed, 1 deletion(-) diff --git a/receiver/pyroscopereceiver/receiver.go b/receiver/pyroscopereceiver/receiver.go index 56ad23c..dd5648a 100644 --- a/receiver/pyroscopereceiver/receiver.go +++ b/receiver/pyroscopereceiver/receiver.go @@ -392,7 +392,6 @@ func (r *pyroscopeReceiver) readProfiles(ctx context.Context, req *http.Request, } else { timestampNs = pm.start durationNs = pm.end - pm.start - durationNs = ns(durationNs) } record.SetTimestamp(pcommon.Timestamp(timestampNs)) m := record.Attributes()