We have currently duplicated the logic that classifies client and server error types because we want to have a decorator that classifies yarpc exception to client vs server and emit metrics. Based on these metrics, alarms are configured.
Exposing the Server / Error types allows to avoid code duplication and allows others to follow a similar approach
We have currently duplicated the logic that classifies client and server error types because we want to have a decorator that classifies yarpc exception to client vs server and emit metrics. Based on these metrics, alarms are configured.
Exposing the Server / Error types allows to avoid code duplication and allows others to follow a similar approach