tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

Include the actual error message on gRPC failure

Open mdii opened this issue 2 years ago • 1 comments

Feature Request

Motivation

Currently when there is a gRPC error a tracing event is generated at the error level with the generic response failed message. We can see this event in the logs as well. However, the message is not informative and it hides the actual error.

Proposal

We need to modify DefaultOnFailure and GrpcErrorsAsFailures so that the error message and the status code are available in the on_failure() method.

mdii avatar Sep 26 '23 14:09 mdii

Please write a more helpful issue title.

davidpdrsn avatar Sep 26 '23 15:09 davidpdrsn

@mdii do you have an example of the modifications needed for this?

hackermondev avatar Feb 18 '25 22:02 hackermondev

@mdii do you have an example of the modifications needed for this?

Unfortunately I don't.

mdii avatar Feb 20 '25 08:02 mdii