def close_buffer(self):
        self._send = self._send_to_server
        self._flush_buffer()
Flush the buffer and switch back to single metric packets.
dataset/ETHPy150Open DataDog/datadogpy/datadog/dogstatsd/base.py/DogStatsd.close_buffer