You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gRPC richer error model is quite useful to send additional feedback to clients, and is supported by many gRPC libraries in other languages. Implementing it using the standard error messages directly (as shown in #401) is not very convenient. Specially when sending multiple additional error detail messages.
Proposal
I recently created a crate (tonic-richer-error) that implements a trait to Status (and provides some structs) aiming to make the implementation of the richer error model more straightforward. It seems to me that incorporating this crate to tonic as an auxiliary crate would be fairly simple. I could transfer the ownership of the released crate or it could be published after revision with another name.
Alternatives
A trait similar to WithErrorDetails could be implemented on the tonic crate itself.
The text was updated successfully, but these errors were encountered:
Hey! Sorry for the delay on this but I finally got some time to fully understand what you're proposing. I think this fits very well into tonic-types in similar vain to prost-types but for gRPC. I would totally accept a PR that adds this support there. Happy to mentor and help out.
Feature Request
Motivation
The gRPC richer error model is quite useful to send additional feedback to clients, and is supported by many gRPC libraries in other languages. Implementing it using the standard error messages directly (as shown in #401) is not very convenient. Specially when sending multiple additional error detail messages.
Proposal
I recently created a crate (tonic-richer-error) that implements a trait to
Status
(and provides some structs) aiming to make the implementation of the richer error model more straightforward. It seems to me that incorporating this crate to tonic as an auxiliary crate would be fairly simple. I could transfer the ownership of the released crate or it could be published after revision with another name.Alternatives
A trait similar to WithErrorDetails could be implemented on the tonic crate itself.
The text was updated successfully, but these errors were encountered: