krakend / krakend-otel

KrakenD component for OpenTelemetry
Apache License 2.0
9 stars 10 forks source link

Wrong IP in span attribute `client.address` #33

Open pirm-in opened 3 months ago

pirm-in commented 3 months ago

We have configured forwarded_by_client_ip and trusted_proxies in the router settings, and the correct client IP shows in the access logs, e.g. 167.94.x.x. But i just noticed, that the client.address span attribute has the IP address of the latest proxy.

Example

label value
client.address "10.254.0.4:43550"
krakend.stage "global"
server.address "my.tld.com"

Also i couldn't find the client.address span attribute in the docs.