add metrics for commit and rollbacks