Hi all,

I'm exploring ways to enrich tracing data from my gRPC clients with the 
resolved 
IP address 
<https://github.com/grpc/grpc/blob/v1.60.1/src/core/ext/filters/client_channel/subchannel.h#L224>
 to 
which an RPC is sent. This is particularly important in scenarios where 
there is a reverse proxy in front of the backends and the set of peer IPs 
seen in the backends' ServerContexts is distinct from the set of IPs 
resolved on the client side. Such scenarios can arise when an 
internet-facing load balancer serves traffic to non-publicly accessible 
backends.

I am specifically looking to access this information from within a Client 
Interceptor. My clients are written in Ruby, but I'm also interested in 
understanding if this is possible in C++. If directly accessing resolved IP 
addresses within a Client Interceptor is not possible, I'm open to 
suggestions on alternative approaches to capturing this information.

My initial approach was to use the `peer` attribute 
<https://github.com/grpc/grpc/blob/v1.62.0/src/ruby/lib/grpc/generic/active_call.rb#L113>
 
of an `ActiveCall` but this turns out to be just the unresolved DNS name.

Thank you in advance for your help and for your ongoing efforts in 
maintaining this powerful library and its community.

Best,
Brett

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/cf0a9a2f-a94b-4854-b8d9-144ca065097cn%40googlegroups.com.

Reply via email to