Is your feature request related to a problem? Please describe.
The temporal_activity_execution_failed and temporal_local_activity_execution_failed worker metrics lack a failure_reason label, making it difficult to categorize activity failure condition from a metrics standpoint. This label exists for Workflow task and Nexus task failures, but not for Activity task failures.
Describe the solution you'd like
The failure_reason label should be applied to the activity task failure metrics when a known failure type causes an activity to fail. Possible examples of the failure conditions:
- The activity result is over the payload size error threshold and the task is proactivity failed by the worker.
- The activity result is over the gRPC size threshold and the task is proactively failed by the worker.
- An external storage operation fails, causing the task to be failed by the worker.
Per-SDK Tickets
Is your feature request related to a problem? Please describe.
The
temporal_activity_execution_failedandtemporal_local_activity_execution_failedworker metrics lack afailure_reasonlabel, making it difficult to categorize activity failure condition from a metrics standpoint. This label exists for Workflow task and Nexus task failures, but not for Activity task failures.Describe the solution you'd like
The
failure_reasonlabel should be applied to the activity task failure metrics when a known failure type causes an activity to fail. Possible examples of the failure conditions:Per-SDK Tickets