File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,6 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
78
78
logger .warning ("OPENAI_API_KEY is not set, skipping trace export" )
79
79
return
80
80
81
- traces : list [dict [str , Any ]] = []
82
- spans : list [dict [str , Any ]] = []
83
-
84
81
data = [item .export () for item in items if item .export ()]
85
82
payload = {"data" : data }
86
83
@@ -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 " )
100
+ logger .debug (f"Exported { len (items )} items " )
104
101
return
105
102
106
103
# If the response is a client error (4xx), we wont retry
You can’t perform that action at this time.
0 commit comments