Example #1
0
 def process_view(self, request, view_func, view_args, view_kwargs):
     args = [_flatten_type(x) for x in view_args]
     kwargs = dict([(x,_flatten_type(y)) for x,y in view_kwargs.items()])
     view = {'view' : view_func.__module__ + '.' + view_func.__name__ ,
             'args' : args,
             'kwargs' : kwargs}
     register_request_event(request, 'view', view)
Example #2
0
 def process_request(self, request):
     visitor_id = _get_visitor_id(request)
     request_log = {'headers' : self._get_headers(request),
                    'path' : request.path,
                    'method' : request.method,
                    'get' : dict(request.GET)}
     register_request_event(request,
                            'request',
                            request_log)