The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix - add stricter type check for OTEL when args[0] is not dict
Ishaan Jaff2444d76fda2d
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex 4f139db362d..80eea79fbc7 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -157,6 +157,7 @@ def log_to_opentelemetry(func):# https://docs.litellm.ai/docs/observability/custom_callback#callback-functionsargs is not Noneand len(args) > 0+ and isinstance(args[0], dict)):passed_kwargs = args[0]parent_otel_span = _get_parent_otel_span_from_kwargs(