otelgrpc: Feature request: Track end-user IPs on gRPC requests #811
Labels
area: instrumentation
Related to an instrumentation package
enhancement
New feature or request
instrumentation: otelgrpc
Currently otelgrpc package provides labels like:
This is great but it is not useful in a cloud environment where the immediate IPv4 connections are coming from load balancers or API gateways and the end user's IP address is not captured in TCP peer info.
I am proposing that
otelgrpc
package also labels end-client IP address by looking at HTTP header (gRPC metadata) if it is available on RPC context throughx-forwarded-for
and/orx-real-ip
header (whichever exists).This is useful on many Kubernetes ingress implementations, CloudFlare as well as platforms like Google Cloud Run.
I am not sure what are the semconv names for such things, or if there is a standard name is allocated.
otelmux
package for example useshttp.client_ip
for this purpose.The text was updated successfully, but these errors were encountered: