tower-http
tower-http copied to clipboard
Include the actual error message on gRPC failure
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.
Please write a more helpful issue title.
@mdii do you have an example of the modifications needed for this?
@mdii do you have an example of the modifications needed for this?
Unfortunately I don't.