elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.38k stars 212 forks source link

feat: implement telemetry interceptor on client side #252

Closed wingyplus closed 2 years ago

wingyplus commented 2 years ago

This is a draft PR to add telemetry to the client side. It's just interceptor that call span that capture next.(stream, req). Currently, the interceptor attach stream to metadata when span is start, and add reply when the span stop. I've modify the helloworld example to show how implement logger with telemetry, its print all event and information of that event.

Screen Shot 2565-07-23 at 20 59 08

Please note that it support only unary operation call. The event metadata can be change during discussion. 🙇

This is work in progress since it's lack of unit tests.

Updates #229

wingyplus commented 2 years ago

Close this PR since it's invalid.