Skip to content

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]

otel fix async_service_failure_hook

Ishaan Jaffbec0350127b2
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py
index 1c794fbc8c3..fca71758e49 100644
--- a/litellm/proxy/utils.py
+++ b/litellm/proxy/utils.py
@@ -172,6 +172,7 @@ def log_to_opentelemetry(func):
error=e,
service=ServiceTypes.DB,
call_type=func.__name__,
+ parent_otel_span=kwargs["parent_otel_span"],
duration=0.0,
start_time=start_time,
end_time=end_time,