Skip to content

add LocalAddr to peer.Peer client side #6577

Closed
@rittneje

Description

@rittneje

Use case(s) - what problem will this feature solve?

We want to be able to log the local address in addition to the remote address from our server-side interceptors to aid in debugging.

Proposed Solution

Add LocalAddr net.Addr to peer.Peer.

Alternatives Considered

This information could also be made available via some other context attribute. It doesn't really matter as long as there is a way to get it.

Additional Context

This was already added to the Java implementation several years ago. grpc/grpc-java#4906

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions