[Twisted-Python] Klein?
Robert DiFalco
robert.difalco at gmail.com
Mon Mar 1 13:51:21 MST 2021
Is this the right place to ask klein questions? I'm writing a metrics
plugin for Klein and I can't figure out how to inject a metrics handler so
that I can get route, path, duration, and status code. What I'm doing now
sucks because Klein and twisted interact in complex ways on Failure and
status codes.
# Replace the klein _call with the metrics generating call
_app._call = _callWithMetrics
Rather than replace _call with my version of _call I was hoping there was a
cleaner way to get the start and stop with the result code of a route
invocation. Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20210301/20ade368/attachment.htm>
More information about the Twisted-Python
mailing list