Skip to content

Commit

Permalink
remove added newline
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Dec 12, 2024
1 parent df70c7e commit f083f82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporter/elasticsearchexporter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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()))

Check failure on line 677 in exporter/elasticsearchexporter/model.go

View workflow job for this annotation

GitHub Actions / govulncheck (exporter-1)

document.AddUint undefined (type objmodel.Document has no field or method AddUint)

m.encodeAttributesOTelMode(&document, span.Attributes())

Expand Down

0 comments on commit f083f82

Please sign in to comment.