You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (JIRA)" <ji...@apache.org> on 2019/08/06 06:03:00 UTC

[jira] [Resolved] (AIRFLOW-4813) Add the client_info parameter during GCP's client library initialization

     [ https://issues.apache.org/jira/browse/AIRFLOW-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Potiuk resolved AIRFLOW-4813.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

> 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
>            Priority: Trivial
>             Fix For: 2.0.0
>
>
> 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.14#76016)