Closed
Description
Spanner Client library is trying to use canUseDirectPath from the GapicSpannerRPC class
This method is always returning false
irrespective of the DirectPath is enabled or not.
It is because of the needsCredentials which always returns "true" as credentials are always null.
Same method is working for gax because the credentials are set in ClientContext before the transportChannel is created.
However for Spanner library there is no way to use the canUseDirectPath
method as the actual channel provider never gets updated.