I'd like to track & print some diagnostic information (when in debug run) for when a web request starts and when it ends. Is there some kind of event/listener/callback I can register to listen for web request lifecycle events?
To make it more concrete, one of the things (not the only one) I want to do is track how long it took to process the request.