Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/agents/tracing/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
logger.warning("OPENAI_API_KEY is not set, skipping trace export")
return

traces: list[dict[str, Any]] = []
spans: list[dict[str, Any]] = []

data = [item.export() for item in items if item.export()]
payload = {"data": data}

Expand All @@ -100,7 +97,7 @@ def export(self, items: list[Trace | Span[Any]]) -> None:

# If the response is successful, break out of the loop
if response.status_code < 300:
logger.debug(f"Exported {len(traces)} traces, {len(spans)} spans")
logger.debug(f"Exported {len(items)} items")
return

# If the response is a client error (4xx), we wont retry
Expand Down