villebro commented on a change in pull request #9519: [dashboard] New, add 
statsd incr to the API
URL: 
https://github.com/apache/incubator-superset/pull/9519#discussion_r408842826
 
 

 ##########
 File path: superset/views/base_api.py
 ##########
 @@ -36,16 +36,28 @@
 }
 
 
+def time_function(func: Callable, *args, **kwargs) -> Tuple[float, Any]:
+    """
+        Measures the amount of time a function takes to execute in ms
+    :param func: The function execution time to measure
+    :param args: args to be passed to the function
+    :param kwargs: kwargs to be passed to the function
+    :return: A tuple with the duration and response from the function
+    """
 
 Review comment:
   ```suggestion
   def time_function(func: Callable, *args, **kwargs) -> Tuple[float, Any]:
       """
       Measures the amount of time a function takes to execute in ms
   
       :param func: The function execution time to measure
       :param args: args to be passed to the function
       :param kwargs: kwargs to be passed to the function
       :return: A tuple with the duration and response from the function
       """
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to