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 otel logging test
Ishaan Jaff16b6b56c8b6b
diff --git a/litellm/tests/test_async_opentelemetry.py b/litellm/tests/test_async_opentelemetry.pyindex ed77424b442..9d180306fde 100644--- a/litellm/tests/test_async_opentelemetry.py+++ b/litellm/tests/test_async_opentelemetry.py@@ -18,7 +18,7 @@ class TestOpenTelemetry(OpenTelemetry):self.kwargs = Noneasync def async_log_success_event(self, kwargs, response_obj, start_time, end_time):- print("in async_log_success_event for TestOpenTelemetry kwargs=", self.kwargs)+ print("in async_log_success_event for TestOpenTelemetry kwargs=", kwargs)self.kwargs = kwargsawait super().async_log_success_event(kwargs, response_obj, start_time, end_time@@ -26,9 +26,8 @@ class TestOpenTelemetry(OpenTelemetry):@pytest.mark.asyncio-async def test_otel_with_message_logging_off():+async def test_awesome_otel_with_message_logging_off():litellm.set_verbose = True- from litellm.integrations.opentelemetry import OpenTelemetryotel_logger = TestOpenTelemetry(message_logging=False, config=OpenTelemetryConfig(exporter="console")