How to log responses with an interceptor #752
-
I would like to use a middleware to log response errors. I looked at the server interceptor example but I can't figure out how to interact with the response. |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Aug 30, 2021
Replies: 1 comment
-
See the TLDR: Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidpdrsn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the
Interceptor
docs.TLDR: Use
TraceLayer::new_for_grpc
from tower-http.