yarpc / yarpc-go

A message passing platform for Go
MIT License
401 stars 101 forks source link

Move & Export logic to get server/client fault type under yarpcerrors #2195

Closed katekyp closed 1 year ago

katekyp commented 1 year ago

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

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.