litellm/tests/unit/enterprise/enterprise_callbacks
tin-berri 33769b8d72
fix(prometheus): emit every declared label on litellm_deployment_cooled_down (#54488)
increment_deployment_cooled_down passed five positional label values while
the metric is declared with get_labels_for_metric, which adds custom metadata
labels and tags and applies exclude/include filters. Custom labels raised
Incorrect label count and dropped the sample; a filter that kept the count at
five recorded values under the wrong label names. Build the labels with
prometheus_label_factory like set_litellm_deployment_state does.

Based on #39106.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 11:39:52 -08:00
..
send_emails feat(proxy): add team budget percentage email alerts (#52859) 2026-11-19 16:21:25 -08:00
__init__.py
test_callback_controls.py fix(logging): stop dumping the request body at every layer under --detailed_debug (#48973) 2026-10-29 02:30:33 +00:00
test_llm_guard.py test: move offline proxy auth, hook, spend and pass-through tests to tests/unit (#45568) 2026-10-09 09:49:13 -07:00
test_pagerduty_alerting.py fix(completion)!: answer 400 for a chat message without a role (#51124) 2026-11-11 20:59:19 +00:00
test_prometheus_logging_callbacks.py fix(prometheus): emit every declared label on litellm_deployment_cooled_down (#54488) 2026-11-25 11:39:52 -08:00
test_secret_detection.py fix(decisions): accept OpenAI input_json content parts on /v1/decisions (#52805) 2026-11-20 13:33:36 -08:00