pub fn get_root_span_index<T: TraceData>(trace: &[Span<T>]) -> Result<usize>
Returns the index of the root span in trace.
trace