Skip to content

Commit

Permalink
sort spans by start time (parents before children as tiebreaker) to a…
Browse files Browse the repository at this point in the history
…void common causes for flaky tests
  • Loading branch information
zeitlinger committed Dec 12, 2022
1 parent bd55c91 commit 04be759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

public class TraceUtil {

/** compares spans by start time, and parent-child as a tie breaker (parent first) */
/** Compare spans by start time, placing parents before their children as a tiebreaker. */
public static final Comparator<SpanData> SPAN_DATA_COMPARATOR =
Comparator.comparing(SpanData::getStartEpochNanos)
.thenComparing(
Expand Down

0 comments on commit 04be759

Please sign in to comment.