We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e13fe commit 9f62c3bCopy full SHA for 9f62c3b
trace-utils/src/trace_utils.rs
@@ -142,11 +142,6 @@ pub fn get_root_span_index(trace: &[pb::Span]) -> anyhow::Result<usize> {
142
anyhow::bail!("Cannot find root span index in an empty trace.");
143
}
144
145
- // parent_id -> (child_span, index_of_child_span_in_trace)
146
- let mut parent_id_to_child_map: HashMap<u64, (&Span, usize)> = HashMap::new();
147
-
148
- // look for the span with parent_id == 0 (starting from the end) since some clients put the root
149
150
// Do a first pass to find if we have an obvious root span (starting from the end) since some
151
// clients put the root span last.
152
for (i, span) in trace.into_iter().enumerate().rev() {
0 commit comments