class_docstr: StatsD Logger.
class_docstr_tok: ["StatsD","Logger","."]
code: def __init__(
      self,
      statsd_client: StatsClient,
      metrics_validator: ListValidator = AllowListValidator(),
      influxdb_tags_enabled: bool = False,
      metric_tags_validator: ListValidator = AllowListValidator(),
  ) -> None:
      self.statsd = statsd_client
      self.metrics_validator = metrics_validator
      self.influxdb_tags_enabled = influxdb_tags_enabled
      self.metric_tags_validator = metric_tags_validator
  
file_path: airflow/airflow/metrics/statsd_logger.py
imports: from __future__ import annotations
  import logging
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, TypeVar, cast
  from airflow.configuration import conf
  from airflow.exceptions import AirflowConfigException
  from airflow.metrics.protocols import Timer
  from airflow.metrics.validators import AllowListValidator, BlockListValidator, get_validator, validate_stat
label_desc: Use image node_id 1 to create a new SafeStatsdLogger object  with example: obj = SafeStatsdLogger(statsd_client, metrics_validator, influxdb_tags_enabled, metric_tags_validator)