enter&exit

函数

def __enter__(self)

def __exit__(self, exc_type, exc_val, exc_tb)

函数功能

在退出的时候,自动调用span_end函数,用于记录过程的结束时间点。