<div dir="ltr">Hey,<div>I didn’t know about that. </div><div>That is exactly what I need!</div><div>Thank you!</div><div><br></div><div>Cheers,</div><div>Łukasz Biedrycki</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Mon, Feb 10, 2014 at 10:49 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

You have the meta values in Req which are passed everywhere. You can easily set and retrieve them.<div><div class="h5"><br>
<br>
On 02/10/2014 10:41 AM, Łukasz Biedrycki wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi again,<br>
another idea is to make environment (Env), which is passed between<br>
middlewares, a part of Request record, so I could have an access to it in<br>
onresponse callback.<br>
<br>
Any of that makes sense?<br>
<br>
Cheers,<br>
Łukasz Biedrycki<br>
<br>
<br>
On Fri, Feb 7, 2014 at 5:56 PM, Łukasz Biedrycki <<a href="mailto:lukasz.biedrycki@gmail.com" target="_blank">lukasz.biedrycki@gmail.com</a><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
in my application I would like to add some metrics per handler and per<br>
response http status code.<br>
<br>
One way is to add on response callback function, but there I do not have<br>
an information about handler and handler opts.<br>
<br>
Second way is to add a middleware, but then I do not have an information<br>
about response status code.<br>
<br>
Frankly, I like second way more.<br>
How do like an idea to add response status code to request record similar<br>
to: resp_headers or resp_body ?<br>
<br>
Cheers,<br>
Łukasz Biedrycki<br>
<br>
</blockquote>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Extend mailing list<br>
<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br>
<a href="https://lists.ninenines.eu/listinfo/extend" target="_blank">https://lists.ninenines.eu/<u></u>listinfo/extend</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote></div><br></div>