1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<tt>
<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"><br>
<br>
On Mon, Feb 10, 2014 at 10:49 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
You have the meta values in Req which are passed everywhere. You can easily set and retrieve them.<div><div class="h5"><br><br>
<br><br>
On 02/10/2014 10:41 AM, Łukasz Biedrycki wrote:<br><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"><br>
Hi again,<br><br>
another idea is to make environment (Env), which is passed between<br><br>
middlewares, a part of Request record, so I could have an access to it in<br><br>
onresponse callback.<br><br>
<br><br>
Any of that makes sense?<br><br>
<br><br>
Cheers,<br><br>
Łukasz Biedrycki<br><br>
<br><br>
<br><br>
On Fri, Feb 7, 2014 at 5:56 PM, Łukasz Biedrycki <<a href="mailto:[email protected]" target="_blank">[email protected]</a><br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
wrote:<br><br>
</blockquote><br>
<br><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br><br>
in my application I would like to add some metrics per handler and per<br><br>
response http status code.<br><br>
<br><br>
One way is to add on response callback function, but there I do not have<br><br>
an information about handler and handler opts.<br><br>
<br><br>
Second way is to add a middleware, but then I do not have an information<br><br>
about response status code.<br><br>
<br><br>
Frankly, I like second way more.<br><br>
How do like an idea to add response status code to request record similar<br><br>
to: resp_headers or resp_body ?<br><br>
<br><br>
Cheers,<br><br>
Łukasz Biedrycki<br><br>
<br><br>
</blockquote><br>
<br><br>
<br><br>
<br></div></div><br>
______________________________<u></u>_________________<br><br>
Extend mailing list<br><br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br><br>
<a href="https://lists.ninenines.eu/listinfo/extend" target="_blank">https://lists.ninenines.eu/<u></u>listinfo/extend</a><br><br>
<br><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888"><br>
<br><br>
-- <br><br>
Loïc Hoguin<br><br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br><br>
</font></span></blockquote></div><br></div><br>
</tt>
|