craig-rueda 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_r407509348
 
 

 ##########
 File path: superset/dashboards/api.py
 ##########
 @@ -160,19 +160,25 @@ def post(self) -> Response:
             500:
               $ref: '#/components/responses/500'
         """
+        self.incr_stats("init", self.post.__name__)
 
 Review comment:
   Can we dry this up? Why not just increment inside of `response_xxx` and set 
the method name in `@expose`?

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