add details to an exception in the metrics logger