def _send_telemetry_counter(self, metric_name, val, scraper_config, extra_tags=None):
    if scraper_config['telemetry']:
        metric_name_with_namespace = self._telemetry_metric_name_with_namespace(metric_name, scraper_config)
        custom_tags = scraper_config['custom_tags']
        tags = list(custom_tags)
        tags.extend(scraper_config['_metric_tags'])
        if extra_tags:
            tags.extend(extra_tags)
        self.count(metric_name_with_namespace, val, tags=tags)
def _send_telemetry_counter(self, metric_name, val, scraper_config, extra_tags=None):
    if scraper_config['telemetry']:
        metric_name_with_namespace = self._telemetry_metric_name_with_namespace(metric_name, scraper_config)
        custom_tags = scraper_config['custom_tags']
        tags = list(custom_tags)
        tags.extend(scraper_config['_metric_tags'])
        if extra_tags:
            tags.extend(extra_tags)
        self.count(metric_name_with_namespace, val, tags=tags)