

def get_category(self, metric):
    "\n        Return a string category for the metric.\n\n        The category is made up of this reporter's prefix and the\n        metric's group and tags.\n\n        Examples:\n            prefix = 'foo', group = 'bar', tags = {'a': 1, 'b': 2}\n            returns: 'foo.bar.a=1,b=2'\n\n            prefix = 'foo', group = 'bar', tags = None\n            returns: 'foo.bar'\n\n            prefix = None, group = 'bar', tags = None\n            returns: 'bar'\n        "
    tags = ','.join((('%s=%s' % (k, x)) for (k, v) in sorted(metric.metric_name.tags.items())))
    return '.'.join((x for x in [self._prefix, metric.metric_name.group, tags] if x))

dataset/ETHPy150Open dpkp/kafka-python/kafka/metrics/dict_reporter.py DictReporter.get_category/VarMisuse@27/221 `v`->`x`