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

        self.queue.append(metric)
        if len(self.queue) >= self.queue_size:
            self._send()

        Process metric by sending it to datadog api
        
src/diamond/handler/datadog.py