You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Is your feature request related to a problem? Please describe.
The current behavior for grpc does not utilize DirectPath. DirectPath leads to improved latency for request originating from GCE VMs and gcloud storage relies on this feature.
Describe the solution you'd like
Two changes are needed:
if compute_engine_channel_credentials_requested:
return grpc.compute_engine_channel_credentials(google_auth_credentials)
else:
grpc.composite_channel_credentials(ssl_credentials, google_auth_credentials)
where, compute_engine_channel_credentials_requested will be a bool passed to the create_channel call. Alternatively, it can rely on the env variable like it's done for other languages
Describe alternatives you've considered
For #2 above, we can potentially update the GAPIC client generator to create the host name with google-c2p:/// prefixed. But I think given that all other languages are handling it in the middleware, it is appropriate to make this change in this library.
Additional context
There is an internal bug related to this, but I'm not sure if I link it on a public repo.
Activity
[-]Use compute_engine_channel_credentials to utilize DirectPath[/-][+]Enable DirectPath support for gRPC workflows[/+]daniel-sanche commentedon Feb 10, 2023
+1, this change is also likely needed for the new BigTable library
atulep commentedon Feb 13, 2023
Can you include the link to DirectPath docs ?
parthea commentedon Feb 15, 2023
Googlers see go/enable-directpath-grpc-python