Open jamesrom opened 4 years ago
Does the generated gRPC code add anything to the context, or otherwise make it easy for us to identify the service / method from the context in a later middleware?
Yeah, we can get most of the details in a gRPC interceptor.
I'm not against this being a separate go module (to keep dependencies clean), just raising here for discussion.
The canonical log line is a lightweight pattern where the key information for a request is logged only once at the end of the request.
Some default values should be added (request method, api version, grpc service method name, etc) and perhaps a simple API to register values in the lifetime of the request?