Skip to content

Commit

Permalink
Remove stale comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VianneyRuhlmann committed Jun 26, 2024
1 parent 73e13fe commit 9f62c3b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions trace-utils/src/trace_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ pub fn get_root_span_index(trace: &[pb::Span]) -> anyhow::Result<usize> {
anyhow::bail!("Cannot find root span index in an empty trace.");
}

// parent_id -> (child_span, index_of_child_span_in_trace)
let mut parent_id_to_child_map: HashMap<u64, (&Span, usize)> = HashMap::new();

// look for the span with parent_id == 0 (starting from the end) since some clients put the root

// Do a first pass to find if we have an obvious root span (starting from the end) since some
// clients put the root span last.
for (i, span) in trace.into_iter().enumerate().rev() {
Expand Down

0 comments on commit 9f62c3b

Please sign in to comment.