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
log event_metadata on otel service loggers
Ishaan Jaff8dcea009b8c0
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex 923021efc24..1c794fbc8c3 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -128,6 +128,11 @@ def log_to_opentelemetry(func):duration=0.0,start_time=start_time,end_time=end_time,+ event_metadata={+ "function_name": func.__name__,+ "function_kwargs": kwargs,+ "function_args": args,+ },)elif (# in litellm custom callbacks kwargs is passed as arg[0]@@ -170,6 +175,11 @@ def log_to_opentelemetry(func):duration=0.0,start_time=start_time,end_time=end_time,+ event_metadata={+ "function_name": func.__name__,+ "function_kwargs": kwargs,+ "function_args": args,+ },)raise e