Insert trace in various file formats