From f083f82a39b8f38881893111440f566151d9466d Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Thu, 12 Dec 2024 14:03:02 +0100 Subject: [PATCH] remove added newline --- exporter/elasticsearchexporter/model.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exporter/elasticsearchexporter/model.go b/exporter/elasticsearchexporter/model.go index 1492185c875d..b29e12e89abf 100644 --- a/exporter/elasticsearchexporter/model.go +++ b/exporter/elasticsearchexporter/model.go @@ -387,7 +387,6 @@ func (dp summaryDataPoint) Value() (pcommon.Value, error) { vm := pcommon.NewValueMap() m := vm.Map() m.PutDouble("sum", dp.Sum()) - m.PutInt("value_count", safeUint64ToInt64(dp.Count())) return vm, nil } @@ -675,7 +674,7 @@ func (m *encodeModel) encodeSpanOTelMode(resource pcommon.Resource, resourceSche document.AddSpanID("parent_span_id", span.ParentSpanID()) document.AddString("name", span.Name()) document.AddString("kind", span.Kind().String()) - document.AddUint("duration", (span.EndTimestamp()-span.StartTimestamp())) + document.AddUint("duration", (span.EndTimestamp() - span.StartTimestamp())) m.encodeAttributesOTelMode(&document, span.Attributes())