Skip to content

Commit

Permalink
If parentSpan.Process is nil, stop processing that span
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Burman <[email protected]>
  • Loading branch information
burmanm committed Aug 8, 2019
1 parent f5cfece commit 4120a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/storage/badger/spanstore/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4120a0e

Please sign in to comment.