eschutho commented on code in PR #20280:
URL: https://github.com/apache/superset/pull/20280#discussion_r900378728
##########
superset/databases/api.py:
##########
@@ -838,6 +848,70 @@ def validate_sql(self, pk: int) -> FlaskResponse:
except DatabaseNotFoundError:
return self.response_404()
+ @expose("/oauth2/", methods=["GET"])
+ @statsd_metrics
+ @event_logger.log_this_with_context(
+ action=lambda self, *args, **kwargs:
f"{self.__class__.__name__}.oauth",
+ log_to_statsd=False,
+ )
Review Comment:
qq, is there a benefit to having the separate decorator for statsd rather
than including it in the event logger?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]