Skip to content

Commit 2cee7c5

Browse files
Add sleep to OTEL exporters
1 parent 71448cd commit 2cee7c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/humanloop/otel/exporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
import threading
33

4+
import time
45
import typing
56
from queue import Empty as EmptyQueue
67
from queue import Queue
@@ -153,6 +154,7 @@ def _do_work(self):
153154
) # type: ignore
154155
except EmptyQueue:
155156
# Wait for the another span to arrive
157+
time.sleep(0.1)
156158
continue
157159

158160
span_to_export, evaluation_context = thread_args

0 commit comments

Comments
 (0)