Skip to content

Commit 7a4c024

Browse files
authored
fix: enforce min trigger size=1 to prevent immediate exports (#1270)
1 parent c13b163 commit 7a4c024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/tracing/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __init__(
183183
self._shutdown_event = threading.Event()
184184

185185
# The queue size threshold at which we export immediately.
186-
self._export_trigger_size = int(max_queue_size * export_trigger_ratio)
186+
self._export_trigger_size = max(1, int(max_queue_size * export_trigger_ratio))
187187

188188
# Track when we next *must* perform a scheduled export
189189
self._next_export_time = time.time() + self._schedule_delay

0 commit comments

Comments
 (0)