Skip to content

Commit a9f4bc8

Browse files
author
Andrei Bratu
committed
Removed needless time.sleep
1 parent 236b52c commit a9f4bc8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/humanloop/otel/exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ def _export_span_dispatch(self, span: ReadableSpan) -> None:
222222

223223
while parent_span_id and self._span_id_to_uploaded_log_id.get(parent_span_id) is None:
224224
logger.debug(
225-
"[HumanloopSpanExporter] Span %s %s waiting for parent %s to be uploaded",
225+
"[HumanloopSpanExporter] _export_span_dispatch on Thread %s Span %s %s waiting for parent %s to be uploaded",
226+
threading.get_ident(),
226227
span.context.span_id,
227228
span.name,
228229
parent_span_id,
229230
)
230-
time.sleep(0.1)
231231

232232
logger.debug(
233233
"[HumanloopSpanExporter] Exporting span %s with file type %s",

src/humanloop/otel/processor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def _wait_for_children(self, span: ReadableSpan):
115115
span.name,
116116
self._children[span_id],
117117
)
118-
time.sleep(0.1)
119118
# All instrumentor spans have arrived, we can process the
120119
# Humanloop parent span owning them
121120
if span.name == "humanloop.flow":

0 commit comments

Comments
 (0)