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 test_awesome_otel_with_message_logging_off

Ishaan Jaff569f3ddda9f5
diff --git a/litellm/tests/test_async_opentelemetry.py b/litellm/tests/test_async_opentelemetry.py
index 9d180306fde..e94adb8335b 100644
--- a/litellm/tests/test_async_opentelemetry.py
+++ b/litellm/tests/test_async_opentelemetry.py
@@ -34,6 +34,8 @@ async def test_awesome_otel_with_message_logging_off():
)
litellm.callbacks = [otel_logger]
+ litellm.success_callback = []
+ litellm.failure_callback = []
response = await litellm.acompletion(
model="gpt-3.5-turbo",
@@ -42,7 +44,7 @@ async def test_awesome_otel_with_message_logging_off():
)
print("response", response)
- await asyncio.sleep(4)
+ await asyncio.sleep(5)
assert otel_logger.kwargs["messages"] == [
{"role": "user", "content": "redacted-by-litellm"}