__enter__/__exit__

Function

def __enter__(self)

def __exit__(self, exc_type, exc_val, exc_tb)

Function Description

Calls the span_start function automatically when the process enters to log its start time. Calls the span_end function automatically when the process exits to log its end time.