You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/17 11:13:16 UTC

[GitHub] [airflow] mik-laj commented on a diff in pull request #25115: Improved telemetry for Databricks provider

mik-laj commented on code in PR #25115:
URL: https://github.com/apache/airflow/pull/25115#discussion_r922815846


##########
airflow/providers/databricks/hooks/databricks_base.py:
##########
@@ -129,6 +130,21 @@ def databricks_conn(self) -> Connection:
     def get_conn(self) -> Connection:
         return self.databricks_conn
 
+    @cached_property
+    def user_agent_header(self) -> Dict[str, str]:
+        return {'user-agent': self.user_agent_str}
+
+    @cached_property
+    def user_agent_str(self) -> str:

Review Comment:
   ```suggestion
       def user_agent_value(self) -> str:
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org