You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withstatsd.timed('mymetric') ast:
...
t.ms# get elapsed time
This is possible with statsd python package, but unfortunately not with datadog package (elapsed time is not stored in _TimedContextManagerDecorator. If I made a PR, would be willing to merge something like this:
Nice idea @tuukkamustonen 💡 , I was not actually aware that such a method exists in the statsd Python package.
We'll be happy to review your PR if you decide to make one :)
Consider:
This is possible with
statsd
python package, but unfortunately not with datadog package (elapsed time is not stored in_TimedContextManagerDecorator
. If I made a PR, would be willing to merge something like this:And yeah, I could call
time() - t.start
myself, but it wouldn't match the sent value astime()
could be different already...The text was updated successfully, but these errors were encountered: