def mlflow_tracing_enabled(integration_name: str) -> bool:
    """
    Checks if autologging tracing is enabled in MLflow for the provided integration name.

    Args:
        integration_name: The integration for which to check if autologging tracing is enabled, e.x.
        langchain, openai, etc.

    Returns:
        bool: If autologging tracing is enabled for the provided integration.
    """
    try:
        from mlflow.utils.autologging_utils import autologging_is_disabled, get_autologging_config

        return not autologging_is_disabled(integration_name) and get_autologging_config(
            integration_name, "log_traces"
        )
    except Exception:
        # Default to autologging disabled
        return False

    Checks if autologging tracing is enabled in MLflow for the provided integration name.

    Args:
        integration_name: The integration for which to check if autologging tracing is enabled, e.x.
        langchain, openai, etc.

    Returns:
        bool: If autologging tracing is enabled for the provided integration.
    
ai/core/src/unitycatalog/ai/core/utils/validation_utils.py