Permalink
Browse files

Adds missing timings and request_complete event for handover requests

  • Loading branch information...
mmzeeman authored and knutin committed Oct 26, 2013
1 parent f69d8b5 commit aca56eef6b1677244c216bbdd1801cc996228d2e
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/elli_http.erl
View
@@ -83,7 +83,14 @@ handle_request(S, PrevB, Opts, {Mod, Args} = Callback) ->
handle_response(Req1, B2, Response);
{ok, handover} ->
Req1 = Req#req{body = B1},
- Mod:handle(Req1, Args)
+
+ t(user_start),
+ Response = Mod:handle(Req1, Args),
+ t(user_end),
+
+ t(request_end),
+ handle_event(Mod, request_complete, [Req1, handover, get_timings()], Args),
+ Response
end.
handle_response(Req, Buffer, {response, Code, UserHeaders, Body}) ->

0 comments on commit aca56ee

Please sign in to comment.