Merge "Record proto to file in am instrument"