You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kamil Bregula (JIRA)" <ji...@apache.org> on 2019/06/19 14:35:00 UTC
[jira] [Created] (AIRFLOW-4813) Add the client_info parameter
during GCP's client library initialization
Kamil Bregula created AIRFLOW-4813:
--------------------------------------
Summary: Add the client_info parameter during GCP's client library initialization
Key: AIRFLOW-4813
URL: https://issues.apache.org/jira/browse/AIRFLOW-4813
Project: Apache Airflow
Issue Type: Improvement
Components: gcp
Affects Versions: 1.10.3
Reporter: Kamil Bregula
Hey. I think that it is worth adding setting the _client_info_ parameter.
Sample code:
{code:java}
client_info = ClientInfo(client_library_version='airflow_v' + version.version)
self._client = container_v1.ClusterManagerClient(credentials=credentials, client_info=client_info)
{code}
Description of client_info parameter:
{quote}client_info (google.api_core.gapic_v1.client_info.ClientInfo):
The client info used to send a user-agent string along with
API requests. If ``None``, then default info will be used.
Generally, you only need to set this if you're developing
your own client library.
{quote}
Reference:
[https://google-cloud.readthedocs.io/en/latest/texttospeech/gapic/v1beta1/api.html]
[https://googleapis.github.io/google-cloud-python/latest/tasks/gapic/v2beta3/api.html]
[https://googleapis.github.io/google-cloud-python/latest/vision/gapic/v1/api.html]
And many more
This parameter is important to Google internally This allows better diagnosis of errors with integration.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)