I'm not sure I understand what this is useful for, do you have an example?

Right now, we're incrementing the "error" statistic on a failure - I'm not sure how this is better, especially when there are also success/error statistics here.