[
https://issues.apache.org/jira/browse/AIRFLOW-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900647#comment-16900647
]
ASF subversion and git services commented on AIRFLOW-4813:
----------------------------------------------------------
Commit 8dcb9763771957017a2e6fe9db6f67a068463774 in airflow's branch
refs/heads/master from Kamil Breguła
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=8dcb976 ]
[AIRFLOW-4813] Add the client_info parameter during GCP's client library
initialization (#5728)
> 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)