Add support for injecting custom HTTP headers into Google Cloud Storage (GCS) SDK requests. This is primarily used for advanced debugging, distributed tracing (e.g., X-Client-Tracking-Id), and custom middlebox routing.
Requirements:
- Global Client Configuration: Allow developers to configure custom headers when instantiating the storage client (e.g., adding
with_custom_headers to ClientBuilder in google_cloud_storage and updating ClientConfig in google_cloud_gax).
- Method/Request-Level Configuration: Allow custom headers to be specified on specific API calls to supplement or override the client-level headers.
- Transport Support: Changes must apply to both HTTP (
reqwest) and gRPC (tonic) transports within google_cloud_gax_internal.
For more details on the use cases for this feature, please refer to the Google Cloud documentation: https://docs.cloud.google.com/storage/docs/troubleshooting#custom-headers.
Add support for injecting custom HTTP headers into Google Cloud Storage (GCS) SDK requests. This is primarily used for advanced debugging, distributed tracing (e.g.,
X-Client-Tracking-Id), and custom middlebox routing.Requirements:
with_custom_headerstoClientBuilderingoogle_cloud_storageand updatingClientConfigingoogle_cloud_gax).reqwest) and gRPC (tonic) transports withingoogle_cloud_gax_internal.For more details on the use cases for this feature, please refer to the Google Cloud documentation: https://docs.cloud.google.com/storage/docs/troubleshooting#custom-headers.