aklivity / zilla

🦎 A multi-protocol edge & service proxy. Seamlessly interface web apps, IoT clients, & microservices to Apache Kafka® via declaratively defined, stateless APIs.
https://docs.aklivity.io/zilla
Other
510 stars 48 forks source link

Persist gRPC error messages #988

Open hedhyw opened 2 months ago

hedhyw commented 2 months ago

Is your feature request related to a problem? Please describe.

Currently, Zilla only reports only status codes without text descriptions.

For example if the server responds:

status.Error(codes.NotFound, "Example description")

Zilla persists the following Kafka headers (only status, no description): image

The client receives an empty description:

rpc error: code = NotFound desc =

Describe the solution you'd like Include information about the error message.

Describe alternatives you've considered N/A

Additional context Probably, also relates to: https://github.com/aklivity/zilla/issues/730

jfallows commented 2 months ago

Thanks for the feature request @hedhyw.

It definitely makes sense for us to propagate the custom status description when present for consistency.