From 07374c731d7d3de1a325445c9c43e9ea5bb95eac Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 6 Aug 2019 16:15:51 +0300 Subject: [PATCH] If parentSpan.Process is nil, stop processing that span Signed-off-by: Michael Burman --- plugin/storage/badger/spanstore/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/storage/badger/spanstore/reader.go b/plugin/storage/badger/spanstore/reader.go index a38bb6251ce..ecc7fba70ea 100644 --- a/plugin/storage/badger/spanstore/reader.go +++ b/plugin/storage/badger/spanstore/reader.go @@ -658,7 +658,7 @@ func processCountSpans(countMap map[Link]uint64, currentTraceSpans []model.Span) } } - if parentSpan.Process.ServiceName == currentTraceSpans[i].Process.ServiceName { + if parentSpan.Process == nil || parentSpan.Process.ServiceName == currentTraceSpans[i].Process.ServiceName { continue }