Skip to content

Commit 6962410

Browse files
committed
Revert "count both spans and traces"
This reverts commit d49bd89.
1 parent d49bd89 commit 6962410

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/agents/tracing/processors.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,7 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
8181
traces: list[dict[str, Any]] = []
8282
spans: list[dict[str, Any]] = []
8383

84-
# Categorize items into traces and spans
85-
for item in items:
86-
if hasattr(item, 'export') and callable(item.export):
87-
export_data = item.export()
88-
if export_data:
89-
if isinstance(item, Trace):
90-
traces.append(export_data)
91-
else:
92-
spans.append(export_data)
93-
94-
data = traces + spans
84+
data = [item.export() for item in items if item.export()]
9585
payload = {"data": data}
9686

9787
headers = {

0 commit comments

Comments
 (0)