Closed yutongp closed 7 years ago
We have it for uhttp: https://github.com/uber-go/fx/blob/master/modules/uhttp/filters.go#L107
And can and definitely can add to yarpc.
According to @breerly, YARPC already does this as well.
On Fri, Feb 10, 2017 at 10:31 AM Alex notifications@github.com wrote:
We have it for uhttp: https://github.com/uber-go/fx/blob/master/modules/uhttp/filters.go#L107
And can and definitely can add to yarpc.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uber-go/fx/issues/236#issuecomment-279026188, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF7P4zcSrhoc3pHR5vOIidb9V2BhzXGks5rbKz7gaJpZM4L9s4I .
I am actually plan to do it for YARPC. Because when I play with our YARPC, it doesn't ask me to pass in a logger.
Please sync with @breerly
On Fri, Feb 10, 2017 at 11:22 AM Yutong Pei notifications@github.com wrote:
I am actually plan to do it for YARPC. Because when I play with our YARPC, it doesn't ask me to pass in a logger.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/uber-go/fx/issues/236#issuecomment-279040341, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF7P-E1GEwG1qrCkG96kEogkk84vIu3ks5rbLjNgaJpZM4L9s4I .
not sure if some pre defined lite weight rpc middlewares fall into fx bucket. But almost every service I create, I will need to have a middleware(wrapper) to log panic stack tracer to sentry and return 500 to client.
for example for http I have:
for tchannel I have:
It could be nice if this can be included in service framework.