We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6962410 commit e591772Copy full SHA for e591772
src/agents/tracing/processors.py
@@ -78,9 +78,6 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
78
logger.warning("OPENAI_API_KEY is not set, skipping trace export")
79
return
80
81
- traces: list[dict[str, Any]] = []
82
- spans: list[dict[str, Any]] = []
83
-
84
data = [item.export() for item in items if item.export()]
85
payload = {"data": data}
86
@@ -100,7 +97,7 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
100
97
101
98
# If the response is successful, break out of the loop
102
99
if response.status_code < 300:
103
- logger.debug(f"Exported {len(traces)} traces, {len(spans)} spans")
+ logger.debug(f"Exported {len(items)} items")
104
105
106
# If the response is a client error (4xx), we wont retry
0 commit comments