Skip to content

Commit

Permalink
Merge pull request #827 from roboflow/feature/always-include-internal…
Browse files Browse the repository at this point in the history
…-service-secret-if-provided

Always include internal envs if set
  • Loading branch information
PawelPeczek-Roboflow authored Nov 22, 2024
2 parents 052efad + 02c0cb4 commit 62f17e4
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 62f17e4

Please sign in to comment.