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]

test_user_email_metrics

Ishaan Jaff55ae1949124e
diff --git a/tests/otel_tests/test_prometheus.py b/tests/otel_tests/test_prometheus.py
index 9fed31ee686..932ae0bbe73 100644
--- a/tests/otel_tests/test_prometheus.py
+++ b/tests/otel_tests/test_prometheus.py
@@ -556,8 +556,9 @@ async def test_user_email_metrics():
"""
async with aiohttp.ClientSession() as session:
# Create a user with user_email
+ user_email = f"test-{uuid.uuid4()}@example.com"
user_data = {
- "user_email": "[email protected]",
+ "user_email": user_email,
}
user_info = await create_test_user(session, user_data)
key = user_info["key"]
@@ -577,5 +578,5 @@ async def test_user_email_metrics():
metrics_after_first = await get_prometheus_metrics(session)
print("metrics_after_first request", metrics_after_first)
assert (
- "[email protected]" in metrics_after_first
+ user_email in metrics_after_first
), "user_email should be tracked correctly"