

def open_buffer(self, max_buffer_size=50):
    "\n        Open a buffer to send a batch of metrics in one packet.\n\n        You can also use this as a context manager.\n\n        >>> with DogStatsd() as batch:\n        >>>     batch.gauge('users.online', 123)\n        >>>     batch.gauge('active.connections', 1001)\n        "
    self.max_buffer_size = max_buffer_size
    self.buffer = []
    self._send = self._send_to_buffer

dataset/ETHPy150Open DataDog/datadogpy/datadog/dogstatsd/base.py DogStatsd.open_buffer/original