MCPcopy Index your code
hub / github.com/openai/openai-agents-python / get_traces

Method get_traces

tests/testing_processor.py:50–53  ·  view source on GitHub ↗
(self, including_empty: bool = False)

Source from the content-addressed store, hash-verified

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:

Callers 1

fetch_tracesFunction · 0.80

Calls 1

exportMethod · 0.45

Tested by

no test coverage detected