mik-laj opened a new issue #13231:
URL: https://github.com/apache/airflow/issues/13231


   Hello,
   
   Client info initialization is duplicated in many places.
   
https://github.com/apache/airflow/blob/349b0811c3022605426ba57d30936240a7c2848a/airflow/providers/google/cloud/_internal_client/secret_manager_client.py#L65
   
https://github.com/apache/airflow/blob/8c42cf1b00c90f0d7f11b8a3a455381de8e003c5/airflow/providers/google/cloud/log/gcs_task_handler.py#L100
   
https://github.com/apache/airflow/blob/b40dffa08547b610162f8cacfa75847f3c4ca364/airflow/providers/google/common/hooks/base_google.py#L343
   
https://github.com/apache/airflow/blob/8c42cf1b00c90f0d7f11b8a3a455381de8e003c5/airflow/providers/google/cloud/log/stackdriver_task_handler.py#L112
   
   It would be great if you could reduce these duplications and use one object 
created at the module level.
   Of course, we must not forget that this change should be backward compatible 
and that old references displayed deprecation warnings. 
(GoogleBaseHook.client_info.
   


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


Reply via email to