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:
7878 logger .warning ("OPENAI_API_KEY is not set, skipping trace export" )
7979 return
8080
81- traces : list [dict [str , Any ]] = []
82- spans : list [dict [str , Any ]] = []
83-
8481 data = [item .export () for item in items if item .export ()]
8582 payload = {"data" : data }
8683
@@ -100,7 +97,7 @@ def export(self, items: list[Trace | Span[Any]]) -> None:
10097
10198 # If the response is successful, break out of the loop
10299 if response .status_code < 300 :
103- logger .debug (f"Exported { len (traces )} traces, { len ( spans ) } spans " )
100+ logger .debug (f"Exported { len (items )} items " )
104101 return
105102
106103 # If the response is a client error (4xx), we wont retry
You can’t perform that action at this time.
0 commit comments