summaryrefslogblamecommitdiffstats
path: root/archives/extend/2014-February/000333.html
blob: 3d277eba124f39a33d5e55b39b550b7288a74b80 (plain) (tree)











































































































                                                                                                                                                                                           
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] Metrics per request and handler
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Metrics%20per%20request%20and%20handler&In-Reply-To=%3C52F8A0A4.8030109%40ninenines.eu%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000332.html">
   <LINK REL="Next"  HREF="000334.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] Metrics per request and handler</H1>
    <B>Lo&#239;c Hoguin</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Metrics%20per%20request%20and%20handler&In-Reply-To=%3C52F8A0A4.8030109%40ninenines.eu%3E"
       TITLE="[99s-extend] Metrics per request and handler">essen at ninenines.eu
       </A><BR>
    <I>Mon Feb 10 10:49:24 CET 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000332.html">[99s-extend] Metrics per request and handler
</A></li>
        <LI>Next message: <A HREF="000334.html">[99s-extend] Metrics per request and handler
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#333">[ date ]</a>
              <a href="thread.html#333">[ thread ]</a>
              <a href="subject.html#333">[ subject ]</a>
              <a href="author.html#333">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>You have the meta values in Req which are passed everywhere. You can 
easily set and retrieve them.

On 02/10/2014 10:41 AM, &#321;ukasz Biedrycki wrote:
&gt;<i> Hi again,
</I>&gt;<i> another idea is to make environment (Env), which is passed between
</I>&gt;<i> middlewares, a part of Request record, so I could have an access to it in
</I>&gt;<i> onresponse callback.
</I>&gt;<i>
</I>&gt;<i> Any of that makes sense?
</I>&gt;<i>
</I>&gt;<i> Cheers,
</I>&gt;<i> &#321;ukasz Biedrycki
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> On Fri, Feb 7, 2014 at 5:56 PM, &#321;ukasz Biedrycki &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">lukasz.biedrycki at gmail.com</A>
</I>&gt;&gt;<i> wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Hi,
</I>&gt;&gt;<i> in my application I would like to add some metrics per handler and per
</I>&gt;&gt;<i> response http status code.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> One way is to add on response callback function, but there I do not have
</I>&gt;&gt;<i> an information about handler and handler opts.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Second way is to add a middleware, but then I do not have an information
</I>&gt;&gt;<i> about response status code.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Frankly, I like second way more.
</I>&gt;&gt;<i> How do like an idea to add response status code to request record similar
</I>&gt;&gt;<i> to: resp_headers or resp_body ?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Cheers,
</I>&gt;&gt;<i> &#321;ukasz Biedrycki
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Extend mailing list
</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;<i>
</I>
-- 
Lo&#239;c Hoguin
<A HREF="http://ninenines.eu">http://ninenines.eu</A>

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000332.html">[99s-extend] Metrics per request and handler
</A></li>
	<LI>Next message: <A HREF="000334.html">[99s-extend] Metrics per request and handler
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#333">[ date ]</a>
              <a href="thread.html#333">[ thread ]</a>
              <a href="subject.html#333">[ subject ]</a>
              <a href="author.html#333">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>