(self, including_empty: bool = False)
| 48 | return sorted(spans, key=lambda x: x.started_at or 0) |
| 49 | |
| 50 | def get_traces(self, including_empty: bool = False) -> list[Trace]: |
| 51 | with self._lock: |
| 52 | traces = [x for x in self._traces if including_empty or x.export()] |
| 53 | return traces |
| 54 | |
| 55 | def clear(self) -> None: |
| 56 | with self._lock: |