voodoo-dn opened a new pull request #1992:
URL: https://github.com/apache/thrift/pull/1992


   Hi.
   
   Thank for this great project. But I think we can introduce some improvements 
which will be are useful for other developers.
   
   Inspired by 
https://github.com/grpc/grpc-go/blob/master/examples/features/interceptor/server/main.go.
   
   Interceptors give opportunities for:
   
   Logging input request and response
   We can log panic situation and return TApplicationException to client 
instead of EOF.
   We can intercept request and do stuff like some validation, etc.
   Usage example: 
https://gist.github.com/voodoo-dn/6af6cf54b8145cc3d4d87d888c4bf907


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to