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 e31d845 commit 2be5500Copy full SHA for 2be5500
ddtrace/writer.py
@@ -147,7 +147,7 @@ def _target(self):
147
except Exception as err:
148
log.error("cannot send services: {0}".format(err))
149
150
- elif self._trace_queue.closed():
+ if self._trace_queue.closed() and self._trace_queue.size() == 0:
151
# no traces and the queue is closed. our work is done
152
return
153
0 commit comments