wolph / python-statsd

Python Client for the Etsy NodeJS Statsd Server
http://readthedocs.org/docs/python-statsd/en/latest/
BSD 3-Clause "New" or "Revised" License
110 stars 39 forks source link

Pull request -- fix for Timer.decorate #9

Closed msherry closed 12 years ago

msherry commented 12 years ago

Without this, timing a function as follows

@timer.decorate
def my_function():
    do_something()

would send timing information as 'application_name.my_function.my_function'. With the fix, timer is named 'application_name.my_function.total', as expected.

wolph commented 12 years ago

Thank you very much for the fix, that addition was still a work in progress and obviously not tested ;)