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
test: update langfuse trace_id tests to use litellm_trace_id
Yuta Saito898cc3ff4ff1
diff --git a/tests/litellm_utils_tests/test_utils.py b/tests/litellm_utils_tests/test_utils.pyindex e1751c8e2f8..f585aadbfcb 100644--- a/tests/litellm_utils_tests/test_utils.py+++ b/tests/litellm_utils_tests/test_utils.py@@ -973,11 +973,11 @@ def test_logging_trace_id(langfuse_trace_id, langfuse_existing_trace_id):litellm_logging_obj._get_trace_id(service_name="langfuse")== langfuse_trace_id)- ## if existing_trace_id exists+ ## if no trace_id or existing_trace_id is provided, use litellm_trace_idelse:assert (litellm_logging_obj._get_trace_id(service_name="langfuse")- == litellm_call_id+ == litellm_logging_obj.litellm_trace_id)diff --git a/tests/logging_callback_tests/test_alerting.py b/tests/logging_callback_tests/test_alerting.pyindex 8a691e7618d..524cc00d5f7 100644--- a/tests/logging_callback_tests/test_alerting.py+++ b/tests/logging_callback_tests/test_alerting.py@@ -866,11 +866,9 @@ async def test_langfuse_trace_id():assert trace_url is not None- returned_trace_id = int(trace_url.split("/")[-1])+ returned_trace_id = trace_url.split("/")[-1]- assert returned_trace_id == int(- litellm_logging_obj._get_trace_id(service_name="langfuse")- )+ assert returned_trace_id == litellm_logging_obj._get_trace_id(service_name="langfuse")@pytest.mark.asyncio