extract_trace_table function

Extract traces