Did you figure it out and create your capture_trace() function without scope? if so can you please guide me through it?