drpc
drpc copied to clipboard
logging addresses
I'd like to log address data on both the client & the server. Is that data currently accessible?
On the server side drpc.Stream doesn't seem to expose any method to do that.
On the client side I'm logging right now by wrapping a drpcconn.Conn, and at that point the server isn't known.
The context returned from any stream has the transport available by using https://github.com/storj/drpc/tree/main/drpcctx#func--transport
You're not the first one to have trouble finding this. It should definitely be documented better. Do you have any suggestions on where you might expect this to be documented?
An example would have enabled me to find it I think.