diff --git a/inference/usage_tracking/collector.py b/inference/usage_tracking/collector.py index 64945e3b9..9a8d8042b 100644 --- a/inference/usage_tracking/collector.py +++ b/inference/usage_tracking/collector.py @@ -156,8 +156,9 @@ def empty_usage_dict(exec_session_id: str) -> APIKeyUsage: "inference_version": inference_version, "enterprise": False, } - if ROBOFLOW_INTERNAL_SERVICE_SECRET and ROBOFLOW_INTERNAL_SERVICE_NAME: + if ROBOFLOW_INTERNAL_SERVICE_SECRET: usage_dict["roboflow_internal_secret"] = ROBOFLOW_INTERNAL_SERVICE_SECRET + if ROBOFLOW_INTERNAL_SERVICE_NAME: usage_dict["roboflow_service_name"] = ROBOFLOW_INTERNAL_SERVICE_NAME return defaultdict( # api_key_hash