

def __init__(self, host='localhost', port=8125, max_buffer_size=50, namespace=None, constant_tags=None, use_ms=False):
    '\n        Initialize a DogStatsd object.\n\n        >>> statsd = DogStatsd()\n\n        :param host: the host of the DogStatsd server.\n        :type host: string\n\n        :param port: the port of the DogStatsd server.\n        :type port: integer\n\n        :param max_buffer_size: Maximum number of metrics to buffer before sending to the server\n        if sending metrics in batch\n        :type max_buffer_size: integer\n\n        :param namepace: Namespace to prefix all metric names\n        :type namepace: string\n\n        :param constant_tags: Tags to attach to all metrics\n        :type constant_tags: list of strings\n\n        :param use_ms: Report timed values in milliseconds instead of seconds (default False)\n        :type use_ms: boolean\n\n        :envvar DATADOG_TAGS: Tags to attach to every metric reported by dogstatsd client\n        :type constant_tags: list of strings\n        '
    self.host = host
    self.port = int(port)
    self.socket = None
    self.max_buffer_size = max_buffer_size
    self._send = self._send_to_server
    self.encoding = 'utf-8'
    env_tags = [tag for tag in os.environ.get('DATADOG_TAGS', '').split(',') if tag]
    if (namespace is None):
        constant_tags = []
    self.constant_tags = (constant_tags + env_tags)
    self.namespace = namespace
    self.use_ms = use_ms

dataset/ETHPy150Open DataDog/datadogpy/datadog/dogstatsd/base.py DogStatsd.__init__/VarMisuse@105/479 `constant_tags`->`namespace`