Uh oh!
There was an error while loading. Please reload this page.
Bundle decorator.py and fix decorators - #91
Conversation
brian-brazil
commented
Jul 20, 2016
That looks good, could you add a quick unittest so we don't accidentally regress? |
micheles
commented
Jul 20, 2016
Yes, no problems on my part, the decorator module is a single file just to On Wed, Jul 20, 2016 at 3:17 PM, Hynek Schlawack notifications@github.com
|
hynek
commented
Jul 20, 2016
I’ve added unit tests for hopefully all decorators and the tests still pass. |
brian-brazil
commented
Jul 20, 2016
Thanks! |
As discussed in #77, this PR bundles (to avoid dependencies) the decorator.py module and uses it to fix the behavior of prometheus_client's decorators.
The efficacy can be verified by using example view from the README and then doing a:
Without this patch, you get:
instead.
Let me now what you think.
Also pinging @micheles out of courtesy and to ensure he doesn’t feel we violate his copyright.