Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always include internal envs if set #827

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion inference/usage_tracking/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down