@classmethod
def configure_settings(cls, settings, tags=None):
    """
        Configure the settings to be used within datadog.
        """
    cls.STATS_ENABLED = cls._get_value_for_key(settings, cls.
        KEY_DATADOG_ENABLED, default=False)
    cls.STATS_PREFIX = cls._get_value_for_key(settings, cls.
        KEY_DATADOG_STATS_PREFIX, default=cls.STATS_PREFIX)
    cls._default_tags = tags or {}
    api_key = cls._get_value_for_key(settings, cls.KEY_DATADOG_API_KEY)
    cls.settings[cls.KEY_DATADOG_API_KEY] = api_key
    default_tags = cls._get_value_for_key(settings, cls.
        KEY_DATADOG_DEFAULT_TAGS)
    cls._default_tags = default_tags or {}
    cls._default_tags.update(tags or {})
