litellm/tests/test_litellm/integrations
Josh 0f48f793ff
Feat - Add organization into the metrics metadata for org_id & org_alias (#24440)
* Add org_id and org_alias label names to Prometheus metric definitions

* Add user_api_key_org_alias to StandardLoggingUserAPIKeyMetadata

* Populate user_api_key_org_alias in pre-call metadata

* Pass org_id and org_alias into per-request Prometheus metric labels

* Add test for org labels on per-request Prometheus metrics

* chore: resolve test mockdata

* Address review: populate org_alias from DB view, add feature flag, use .get() for org metadata

* Add org labels to failure path and verify flag behavior in test

* Fix test: build flag-off enum_values without org fields

* Gate org labels behind feature flag in get_labels() instead of static metric lists

* Scope org label injection to metrics that carry team context, remove orphaned budget label defs, add test teardown

* Use explicit metric allowlist for org label injection instead of team heuristic

* Fix duplicate org label guard, move _org_label_metrics to class constant

* Reset custom_prometheus_metadata_labels after duplicate label assertion

* fix: emit org labels by default, remove flag, fix missing org_alias in all metadata paths

* fix: emit org labels by default, no opt-in flag required

* fix: write org_alias to metadata unconditionally in proxy_server.py
2026-04-08 08:53:41 +05:30
..
arize
azure_storage
bitbucket
cloudzero
datadog Ishaan - March 18th changes (#24056) 2026-03-19 10:20:35 -07:00
dotprompt
focus [Fix] Use cached async HTTP client in Vantage destination 2026-03-14 12:23:40 -07:00
gcs_bucket
gcs_pubsub
gitlab
langfuse
levo
litellm_agent
open_telemetry/data
SlackAlerting
websearch_interception Litellm fix update bedrock models (#24947) 2026-04-01 19:22:54 -07:00
test_agentops.py
test_anthropic_cache_control_hook.py
test_athina.py
test_azure_sentinel.py
test_braintrust_logging.py
test_braintrust_span_name.py
test_custom_guardrail.py
test_custom_guardrail_recursion.py
test_custom_prompt_management.py
test_deepeval.py
test_langfuse.py
test_langfuse_otel.py
test_langsmith_init.py Merge branch 'main' into litellm_oss_staging_03_17_2026 2026-03-20 08:42:41 +05:30
test_mlflow.py
test_openmeter.py
test_opentelemetry.py Code review 2026-03-18 16:25:42 -05:00
test_opentelemetry_dynamic_imports.py
test_prometheus_cache_metrics.py
test_prometheus_client_ip_user_agent.py Feat - Add organization into the metrics metadata for org_id & org_alias (#24440) 2026-04-08 08:53:41 +05:30
test_prometheus_invalid_key_filtering.py
test_prometheus_labels.py
test_prometheus_metric_name_consistency.py
test_prometheus_missing_metrics.py
test_prometheus_none_metadata.py
test_prometheus_queue_guardrail_metrics.py
test_prometheus_services.py
test_prometheus_spend_logs_metadata.py test(prometheus): add tests for spend_logs_metadata in custom labels 2026-03-23 11:02:21 -07:00
test_prometheus_stream_label.py
test_prometheus_user_team_metrics.py Feat - Add organization into the metrics metadata for org_id & org_alias (#24440) 2026-04-08 08:53:41 +05:30
test_responses_background_cost.py
test_s3_v2.py
test_weave_otel.py