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_user_email_in_all_required_metrics

Ishaan Jaffere733b619dbc9
diff --git a/tests/otel_tests/test_prometheus.py b/tests/otel_tests/test_prometheus.py
index 1328dae2ede..c811a6c020d 100644
--- a/tests/otel_tests/test_prometheus.py
+++ b/tests/otel_tests/test_prometheus.py
@@ -576,8 +576,8 @@ async def test_user_email_in_all_required_metrics():
Test that user_email label is present in all the metrics that were requested to have it:
- litellm_proxy_total_requests_metric_total
- litellm_proxy_failed_requests_metric_total
- - litellm_input_tokens_total
- - litellm_output_tokens_total
+ - litellm_input_tokens_metric_total
+ - litellm_output_tokens_metric_total
- litellm_requests_metric_total
- litellm_spend_metric_total
"""
@@ -608,8 +608,8 @@ async def test_user_email_in_all_required_metrics():
# Check that user_email appears in all the required metrics
required_metrics_with_user_email = [
"litellm_proxy_total_requests_metric_total",
- "litellm_input_tokens_total",
- "litellm_output_tokens_total",
+ "litellm_input_tokens_metric_total",
+ "litellm_output_tokens_metric_total",
"litellm_requests_metric_total",
"litellm_spend_metric_total"
]