Skip to content

Commit

Permalink
Fix handling the loop for empty attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmm-sumo committed Mar 5, 2021
1 parent bf8b945 commit 3ce79b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/loggingexporter/logging_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (b *logDataBuffer) logEvents(description string, se pdata.SpanEventSlice) {
b.logEntry(" -> DroppedAttributesCount: %d", e.DroppedAttributesCount())

if e.Attributes().Len() == 0 {
return
continue
}
b.logEntry(" -> Attributes:")
e.Attributes().ForEach(func(k string, v pdata.AttributeValue) {
Expand All @@ -259,7 +259,7 @@ func (b *logDataBuffer) logLinks(description string, sl pdata.SpanLinkSlice) {
b.logEntry(" -> TraceState: %s", l.TraceState())
b.logEntry(" -> DroppedAttributesCount: %d", l.DroppedAttributesCount())
if l.Attributes().Len() == 0 {
return
continue
}
b.logEntry(" -> Attributes:")
l.Attributes().ForEach(func(k string, v pdata.AttributeValue) {
Expand Down

0 comments on commit 3ce79b5

Please sign in to comment.