Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Crossdock crash fix #228

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crossdock/client/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ func (c *Client) trace(t crossdock.T) {
}
}

traceID := resp.Span.TraceId
if traceID == "" {
if resp.Span == nil || resp.Span.TraceId == "" {
t.Errorf("Trace ID is empty in S1(%s)", server1)
return
}

traceID := resp.Span.TraceId
success := validateTrace(t, level1.Downstream, resp, server1, 1, traceID, sampled, baggage)
if success {
t.Successf("trace checks out")
Expand Down