You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
We're using trace-agent for connect + express in pods behind a loadbalancer, the value of /http/source/ip is always the ip of the loadbalancer instead of the real client.
This makes debugging individual issues based on the /http/source/ip currently impossible.
Using req.ip instead of req.connection.remoteAddress for express and koa would respect any x-forwarded-for headers and report the real client ip.
We're using trace-agent for connect + express in pods behind a loadbalancer, the value of
/http/source/ipis always the ip of the loadbalancer instead of the real client.This makes debugging individual issues based on the
/http/source/ipcurrently impossible.Using
req.ipinstead ofreq.connection.remoteAddressfor express and koa would respect anyx-forwarded-forheaders and report the real client ip.API
Docs
I'd happily contribute a pull request for this :)