google-cloud-cpp
google-cloud-cpp copied to clipboard
Support API Keys (aka x-api-key) in Cloud Bigtable
Some applications need to set the x-api-key metadata header in Cloud Bigtable.
Without decorators or interceptors probably the best way is to add an api_key() attribute to ClientOptions which gets copied by each wrapper object and used in the MetadataUpdatePolicy.
We can use the existing OptionsSpan to inject these as part of the metadata decorator.
This may actually be x-goog-api-key. Keep open for now.
Would like to do this, but have no time. Closing.