Skip to content

Commit

Permalink
Fix null pointer exception in the logging exporter (#743)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Mar 30, 2020
1 parent 40f0ff1 commit 9aa2386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/loggingexporter/logging_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (s *loggingExporter) pushTraceData(
resourceInfo = fmt.Sprintf(", resource \"%s\" (%d labels)", td.Resource.Type, len(td.Resource.Labels))
}

if td.Node != nil {
if td.Node != nil && td.Node.ServiceInfo != nil {
nodesInfo = fmt.Sprintf(", node service: %s", td.Node.ServiceInfo.Name)
}

Expand Down

0 comments on commit 9aa2386

Please sign in to comment.