(self, session_id: str)
| 364 | return True |
| 365 | |
| 366 | def get_finished_spans(self, session_id: str): |
| 367 | trace_ids = self.trace_dict.get(session_id, None) |
| 368 | if trace_ids is None or not trace_ids: |
| 369 | return [] |
| 370 | return [x for x in self._spans if x.context.trace_id in trace_ids] |
| 371 | |
| 372 | def clear(self): |
| 373 | self._spans.clear() |