[ 
https://issues.apache.org/jira/browse/AIRFLOW-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900646#comment-16900646
 ] 

ASF GitHub Bot commented on AIRFLOW-4813:
-----------------------------------------

potiuk commented on pull request #5728: [AIRFLOW-4813] Add the client_info 
parameter during GCP's client libr…
URL: https://github.com/apache/airflow/pull/5728
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>
> 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)

Reply via email to