Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Aug 18, 2022
1 parent a1e072d commit 2723f8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions exporter/mezmoexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ func (m *mezmoExporter) logDataToMezmo(ld plog.Logs) error {
attrs["hostname"] = resourceHostName.AsString()
}

traceId := log.TraceID().HexString()
if traceId != "" {
attrs["trace.id"] = traceId
traceID := log.TraceID().HexString()
if traceID != "" {
attrs["trace.id"] = traceID
}

spanId := log.SpanID().HexString()
if spanId != "" {
attrs["span.id"] = spanId
spanID := log.SpanID().HexString()
if spanID != "" {
attrs["span.id"] = spanID
}

log.Attributes().Range(func(k string, v pcommon.Value) bool {
attrs[k] = truncateString(v.StringVal(), maxMetaDataSize)
return true
Expand Down

0 comments on commit 2723f8a

Please sign in to comment.