class SocketAddressEndpoint implements Tracing.Endpoint {

    private final SocketAddress socketAddress;

    public SocketAddressEndpoint(SocketAddress socketAddress) {
        this.socketAddress = socketAddress;
    }

    public SocketAddress getSocketAddress() {
        return socketAddress;
    }

    @Override
    public String toString() {<FILL_FUNCTION_BODY>}

}


        if (socketAddress instanceof InetSocketAddress) {
            InetSocketAddress inet = (InetSocketAddress) socketAddress;
            return inet.getHostString() + ":" + inet.getPort();
        }

        return socketAddress.toString();
    
<no_super_class>