def __exit__(self, exc_type, exc_val, exc_tb):
        if exc_type:
            self.log_event('python.exception', {'type': exc_type,
                                                'val': exc_val,
                                                'tb': exc_tb})
        self.finish()
Ends context manager and calls finish() on the span.
dataset/ETHPy150Open opentracing/opentracing-python/opentracing/span.py/Span.__exit__