[99s-extend] Metrics per request and handler

Łukasz Biedrycki lukasz.biedrycki at gmail.com
Mon Feb 10 10:41:13 CET 2014


Hi again,
another idea is to make environment (Env), which is passed between
middlewares, a part of Request record, so I could have an access to it in
onresponse callback.

Any of that makes sense?

Cheers,
Łukasz Biedrycki


On Fri, Feb 7, 2014 at 5:56 PM, Łukasz Biedrycki <lukasz.biedrycki at gmail.com
> wrote:

> Hi,
> in my application I would like to add some metrics per handler and per
> response http status code.
>
> One way is to add on response callback function, but there I do not have
> an information about handler and handler opts.
>
> Second way is to add a middleware, but then I do not have an information
> about response status code.
>
> Frankly, I like second way more.
> How do like an idea to add response status code to request record similar
> to: resp_headers or resp_body ?
>
> Cheers,
> Łukasz Biedrycki
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20140210/b46e2bab/attachment.html>


More information about the Extend mailing list