@@ -0,0 +1,911 @@
+import cantal%0A%0Arequests = cantal.RequestTracker('requests')%0Apost = cantal.RequestTracker('post')%0Aadding_stats_flow = cantal.Fork(%5B'app', 'incrby', 'redis'%5D,%0A                                state='appstats.adding_stats')%0Arequest_flow = cantal.Fork(%5B'app', 'mongo'%5D,%0A                           state='appstats.processing_request')%0A%0A%0Adef request_tracking_middleware(wsgi_app):%0A    def middleware(environ, start_response):%0A        method = environ%5B'REQUEST_METHOD'%5D%0A        if method == 'POST':%0A            with (requests.request(),%0A                  post.request(),%0A                  adding_stats_flow.context()):%0A                adding_stats_flow.app.enter()%0A                return wsgi_app(environ, start_response)%0A        else:%0A            with requests.request(), request_flow.context():%0A                request_flow.app.enter()%0A                return wsgi_app(environ, start_response)%0A    return middleware%0A%0A%0A

Add missing file