Make use of functools.wraps to keep the decorated function name and docstring. Otherwise our views decorated with the timer show up as statsd.timer:_decorator
Coverage remained the same at 100.0% when pulling 19060dfad2828b660374143cddd81ad9eadcb7f5 on raphaelmerx:master into c629b3e4cd7d8a6746a2055d6898600bd2737edd on WoLpH:master.
Make use of
functools.wraps
to keep the decorated function name and docstring. Otherwise our views decorated with thetimer
show up asstatsd.timer:_decorator