code: def report_traces(self, spans):
          
          try:
              response = None
              response = self.client.post(self.__traces_url(),
                                          data=self.to_json(spans),
                                          headers={"Content-Type": "application/json"},
                                          timeout=0.8)
  
              # logger.warn("report_traces: response.status_code is %s" % response.status_code)
  
              if response.status_code is 200:
                  self.last_seen = datetime.now()
          except (requests.ConnectTimeout, requests.ConnectionError):
              logger.debug("report_traces: host agent connection error")
          finally:
              return response
docs: Used to report entity data (metrics & snapshot) to the host agent.