Taragolis commented on code in PR #35059:
URL: https://github.com/apache/airflow/pull/35059#discussion_r1365676440


##########
airflow/providers/yandex/hooks/yandex.py:
##########
@@ -85,17 +85,24 @@ def get_connection_form_widgets() -> dict[str, Any]:
             ),
         }
 
+    @classmethod
+    def airflow_user_agent(cls) -> str:
+        import airflow
+        import os
+
+        version = os.getenv("AIRFLOW_USER_AGENT_VERSION", airflow.__version__)

Review Comment:
   Maybe better make it as a part of Provider Configuration?
   - [Setting Configuration 
Options](https://airflow.apache.org/docs/apache-airflow/stable/howto/set-config.html)
   - [Global Configuration 
Reference](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#configuration-reference)
   - [OpenLinage Configuration 
Reference](https://airflow.apache.org/docs/apache-airflow-providers-openlineage/stable/configurations-ref.html)
   



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to