Collects data for the given Request and Response.
@api
Request $request A Request instance:
Response $response A Response instance:
\Exception $exception An Exception instance:
Overrides DataCollectorInterface::collect
public function collect(Request $request, Response $response, \Exception $exception = null) {
}