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]

fix otel type

Ishaan Jaff31a5cb188592
diff --git a/litellm/integrations/opentelemetry.py b/litellm/integrations/opentelemetry.py
index 379c4188074..d35c7f304a6 100644
--- a/litellm/integrations/opentelemetry.py
+++ b/litellm/integrations/opentelemetry.py
@@ -41,7 +41,7 @@ LITELLM_REQUEST_SPAN_NAME = "litellm_request"
class OpenTelemetryConfig:
from opentelemetry.sdk.trace.export import SpanExporter
- exporter: str | SpanExporter = "console"
+ exporter: Union[str, SpanExporter] = "console"
endpoint: Optional[str] = None
headers: Optional[str] = None