def METHOD_NAME():
    env_var_set = bool(os.getenv("BASEROW_ENABLE_OTEL", False))
    not_in_tests = (
        os.getenv("DJANGO_SETTINGS_MODULE", "").strip()
        != "baserow.config.settings.test"
    )
    return env_var_set and not_in_tests