This repository was archived by the owner on Jul 11, 2022. It is now read-only.
Commit d83b7b1
Ensure Tracer.close() properly flushes finished but unsent spans (#294)
* assigning to Reporter._stopped in _flush() instead of close()
avoids dropping those spans passed to report_span just _prior_ to
Reporter.close() for which _report_span_from_ioloop will execute only
*afterwards*; this way those scheduled callbacks will get a chance to
run before _flush stops the reporter and those pending spans make it
into the queue before the reporter shuts down.
Signed-off-by: obataku <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>1 parent 0e6beca commit d83b7b1
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 218 | | |
222 | 219 | | |
223 | 220 | | |
224 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments