mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
Merge remote-tracking branch 'origin' into litellm_org_usage
This commit is contained in:
commit
3803a0e133
1 changed files with 6 additions and 2 deletions
|
|
@ -117,10 +117,14 @@ class ArizeLogger(OpenTelemetry):
|
|||
try:
|
||||
config = self.get_arize_config()
|
||||
|
||||
if not config.space_id or not config.space_key:
|
||||
# Prefer ARIZE_SPACE_KEY, but fall back to ARIZE_SPACE_ID for backwards compatibility
|
||||
effective_space_key = config.space_key or config.space_id
|
||||
|
||||
if not effective_space_key:
|
||||
return {
|
||||
"status": "unhealthy",
|
||||
"error_message": "ARIZE_SPACE_ID environment variable not set",
|
||||
# Tests (and users) expect the error message to reference ARIZE_SPACE_KEY
|
||||
"error_message": "ARIZE_SPACE_KEY environment variable not set",
|
||||
}
|
||||
|
||||
if not config.api_key:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue