code: def trace(self, request, response, error, latency):
          
  
          data = self.__collect_trace_data(request, response, error, latency)
  
          self.inspector(data)
          self.emitter(data)
docs: Collects the data from the given parameters and emit it.
  
          :param request: The Flask request.
          :param response: The Flask response.
          :param error: The error occurred if any.
          :param latency: The time elapsed to process the request.