[Go] Identify dialed address and peer in client interceptors

12 views
Skip to first unread message

mkle...@gmail.com

unread,
May 28, 2018, 9:32:53 AM5/28/18
to grpc.io
Hi all,

Is there a canonical way to retrieve information about the server that was dialed and called in a client interceptor?

UnaryClientInterceptor [0] seems to provide the ClientConn, on which ChannelzMetric [1] can be called to retrieve info that includes the dial target. But is that the best way?

I was not able to find a way to find the address of the actual server that ended up serving the request.

Thanks!

Reply all
Reply to author
Forward
0 new messages