Bowrna commented on issue #33426:
URL: https://github.com/apache/airflow/issues/33426#issuecomment-1790610192

   This is the code I retrieved from the python StatsdClient and it shows that 
timer if we pass the timedelta converts it into milliseconds and push it. 
   
   With that said could I simply edit the documentation part alone saying its a 
milliseconds information that's being pushed to Statsd. 
   
https://github.com/jsocol/pystatsd/blob/c687a4e6bcad1314088cf4934580a8bf46290a8a/statsd/client/base.py#L23C1-L34
   
   ```
   
       def timing(self, stat, delta, rate=1):
           """
           Send new timing information.
   
   
           `delta` can be either a number of milliseconds or a timedelta.
           """
           if isinstance(delta, timedelta):
               # Convert timedelta to number of milliseconds.
               delta = delta.total_seconds() * 1000.
           self._send_stat(stat, '%0.6f|ms' % delta, rate)
   
   ```
   cc: @potiuk @ferruzzi 


-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to