Metric for complete activity failures


Temporal already has activity_execution_failure metric, but it also counts all the retries as failures. Do you guys think it would be beneficial to add a metric that would count complete activity failures? I.E. An activity fails after all the retries → counter +1.

I was thinking of opening a PR. But maybe it’s not needed for others, or maybe it’s not viable to do in temporal code. So making sure before I invest time in it :slight_smile:

Hi, this has been asked before by users so imo it’s useful. Workaround is to handle your activity failure in workflow code and update a custom metric type.

Would open feature request in sdk-features repo first as it would apply to all SDKs.