diff --git a/litellm/tests/test_async_opentelemetry.py b/litellm/tests/test_async_opentelemetry.py index 1fac0bb67..55b60b302 100644 --- a/litellm/tests/test_async_opentelemetry.py +++ b/litellm/tests/test_async_opentelemetry.py @@ -42,6 +42,8 @@ async def test_otel_with_message_logging_off(): ) print("response", response) + await asyncio.sleep(4) + assert otel_logger.kwargs["messages"] == [ {"role": "user", "content": "redacted-by-litellm"} ]