def _get_parents(self) -> List[SimpleSpan]:
        """Helper method to get all parent/root spans."""
        all_spans = self.completed_spans + self.dropped_spans
        return [s for s in all_spans if s.parent_id is None]
Helper method to get all parent/root spans.
llama-index-core/llama_index/core/instrumentation/span_handlers/simple.py