Add trace start and end

Add trace start and end