geemus/excon — pull request #157 by dpiddy (2012-10-29 15:05:27+00:00)
Title: Make remote_ip available on a best-effort basis.

Opening this for discussion. Having some SSL verification issues with AWS and knowing the remote IP we're connecting to might help debug but in general having that info handy would be very nice.

To make the IP available to the instrumentor we have to `socket.remote_ip` which will connect the socket, possibly erroring. My hack for that is to generally rescue there and let the error happen again when the request is tried for real. This bugs me but not sure how else to go about it.

Needs some tests.