Add guide for Server and Client interceptors
Nezteb opened this issue · comments
Describe the solution you'd like
We currently support server interceptors via the GRPC.Endpoint
module.
However, there seems to be no way to implement client interceptors.
Some relevant links:
- https://learn.microsoft.com/en-us/aspnet/core/grpc/interceptors
- https://edgehog.blog/a-guide-to-grpc-and-interceptors-265c306d3773
Describe alternatives you've considered
I can't think of any viable alternatives.
The feature is there already! I'll change the issue to improve documentation on this.
We should probably add a guide with interceptors on both ends.
Noting that this is lacking actual documentation. The Client Interceptor module points to Stub, but Stub just cites the option without explanation: https://hexdocs.pm/grpc/GRPC.Stub.html#connect/2
I just came back here to mention that I eventually found the same module(s) you mentioned. 😅
I agree; updating the docs is ideal!