olegkachur-e commented on code in PR #77462:
URL: https://github.com/apache/airflow/pull/77462#discussion_r4680769035


##########
providers/google/src/airflow/providers/google/cloud/hooks/cloud_monitoring.py:
##########
@@ -56,14 +56,14 @@ def __init__(
     def _get_policy_client(self):
         if not self._policy_client:
             self._policy_client = monitoring_v3.AlertPolicyServiceClient(
-                client_options=self.get_client_options()
+                credentials=self.get_credentials(), 
client_options=self.get_client_options()
             )
         return self._policy_client
 
     def _get_channel_client(self):
         if not self._channel_client:
             self._channel_client = 
monitoring_v3.NotificationChannelServiceClient(
-                client_options=self.get_client_options()
+                credentials=self.get_credentials(), 
client_options=self.get_client_options()
             )

Review Comment:
   nit: May I suggest to pass `client_info=CLIENT_INFO` (from 
`airflow.providers.google.common.consts import CLIENT_INFO`), for both clients, 
as well?
   
   



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