Captures the output of the specified op and appends it at the end of the corresponding list of diagnostics.
op