We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201fb95 commit e5d0525Copy full SHA for e5d0525
src/humanloop/otel/exporter/__init__.py
@@ -1,5 +1,6 @@
1
import logging
2
3
+import time
4
import typing
5
from queue import Empty as EmptyQueue
6
from queue import Queue
@@ -129,7 +130,8 @@ def _do_work(self):
129
130
# Don't block or the thread will never be notified of the shutdown
131
thread_args = self._upload_queue.get(block=False) # type: ignore
132
except EmptyQueue:
- # Wait for the another span to arrive
133
+ # Wait for another span to arrive
134
+ time.sleep(0.1)
135
continue
136
137
span_to_export, eval_context_callback = thread_args
0 commit comments