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 c13b163 commit 7a4c024Copy full SHA for 7a4c024
src/agents/tracing/processors.py
@@ -183,7 +183,7 @@ def __init__(
183
self._shutdown_event = threading.Event()
184
185
# The queue size threshold at which we export immediately.
186
- self._export_trigger_size = int(max_queue_size * export_trigger_ratio)
+ self._export_trigger_size = max(1, int(max_queue_size * export_trigger_ratio))
187
188
# Track when we next *must* perform a scheduled export
189
self._next_export_time = time.time() + self._schedule_delay
0 commit comments