ENH: Add user-agent string when constructing BigQuery and BigQuery Storage API clients. #281
Labels
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
It would help me prioritize work on pandas-gbq if Google could see how much BigQuery usage originates from pandas-gbq. Plus, it's actually required by the Google APIs terms of service that we accurately identify our "application" accurately in requests to Google APIs.
To do this, we need to populate the
user_agent
property ofgoogle.api_core.client_info.ClientInfo
orgoogle.api_core.gapic_v1.client_info.ClientInfo
when we construct abigquery.Client
orbigquery_storage_v1beta1.Client
, respectively.I propose we use the pandas version information in this string, as pandas seems to be the "application", since this package exists to ith
pandas.read_gbq
.Related: googleapis/google-cloud-python#8696
The text was updated successfully, but these errors were encountered: