Fixed an issue with metrics recording where end-to-end time and processing time was not recorded.