def process(self, metric):
        """
        Process metric by sending it to datadog api
        """

        self.queue.append(metric)
        if len(self.queue) >= self.queue_size:
            logging.debug("Queue is full, sending logs to Logentries")
            self._send()
def process ( self , metric ) : self . queue . append ( metric ) if len ( self . queue ) >= self . queue_size : logging . debug ( "Queue is full, sending logs to Logentries" ) self . _send ( )
Process metric by sending it to datadog api