<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wrap_view_func(self, app, rule, req, view_func, view_kwargs):
 """ This method is called just before the flask view is called. This is done by the dispatch_request method. """

        operation = view_func.__module__ + "." + view_func.__name__
        return self.trace_view_function(
            view_func, ("Controller", {"path": req.path, "name": operation})
        )