Records that an event took place.
Request $request A Request instance:
string $event The event name:
private function record(Request $request, $event) {
$path = $request
->getPathInfo();
if ($qs = $request
->getQueryString()) {
$path .= '?' . $qs;
}
$this->traces[$request
->getMethod() . ' ' . $path][] = $event;
}