def test_tracer(): tracer = Tracer() span = tracer.start_span(operation_name='root') child = tracer.start_span(operation_name='child', parent=span) assert span == child fut = tracer.flush() assert type(fut) is Future fut.result(timeout=1)