client_python icon indicating copy to clipboard operation
client_python copied to clipboard

can no longer subclass prometheus_client.twisted.MetricsResource

Open bendemott opened this issue 5 years ago • 1 comments

In Twisted resources are designed to be subclassed.

Now that MetricsResource is hidden behind a lambda, it can no longer be subclassed.

Can you provide a easy way to subclass the handler?

bendemott avatar May 28 '20 17:05 bendemott

It's one line of code, it'd be easier for you to copy it over. I'd actually prefer to remove this altogether, now that it's using WSGI.

brian-brazil avatar May 28 '20 18:05 brian-brazil