Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias committed Sep 13, 2023
1 parent 9c7be99 commit c21141a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions server/executor/tracepollerworker/fetcher_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (w *traceFetcherWorker) ProcessItem(ctx context.Context, job executor.Job)
if err != nil {
log.Printf("[TracePoller] Test %s Run %d: GetTraceByID (traceID %s) error: %s", job.Test.ID, job.Run.ID, traceID, err.Error())
job.Run.LastError = err

handleDBError(w.state.updater.Update(ctx, job.Run))
w.outputQueue.Enqueue(ctx, job)
return
}

spansBefore := 0
Expand Down
4 changes: 3 additions & 1 deletion server/traces/trace_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ func flattenSpans(res map[trace.SpanID]*Span, root Span) {

res[root.ID] = rootPtr
for _, child := range root.Children {
flattenSpans(res, *child)
if _, ok := res[root.ID]; !ok {
flattenSpans(res, *child)
}
}

// Remove children and parent because they are now part of the flatten structure
Expand Down

0 comments on commit c21141a

Please sign in to comment.