litellm/tests/otel_tests
Krish Dholakia b9f2cc1c98
Model Armor - Logging guardrail response on llm responses (#16977)
* Litellm dev 11 22 2025 p1 (#16975)

* fix(model_armor.py): return response after applying changes

* fix: initial commit adding guardrail span logging to otel on post-call runs

sends it as a separate span right now, need to include in the same llm request/response span

* fix(opentelemetry.py): include guardrail in received request log + set input/ouput fields on parent otel span instead of nesting it

allows request/response to be seen easily on observability tools

* fix(model_armor.py): working model armor logging on post call events

* fix: fix exception message

* fix(opentelemetry.py): add backwards compatibility for litellm_request

allow users building on the spec change to use previous spec
2025-11-22 15:44:28 -08:00
..
test_e2e_budgeting.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_e2e_model_access.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_guardrails.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_key_logging_callbacks.py (feat) add /key/health endpoint to test key based logging (#6073) 2024-10-05 11:56:55 +05:30
test_model_info.py [Feat] Allow setting supports_vision for Custom OpenAI endpoints + Added testing (#5821) 2024-09-21 11:35:55 -07:00
test_moderations.py test_basic_moderations_on_proxy_with_model 2025-10-27 13:49:47 -07:00
test_otel.py Model Armor - Logging guardrail response on llm responses (#16977) 2025-11-22 15:44:28 -08:00
test_prometheus.py test_team_budget_metrics 2025-11-01 09:21:17 -07:00
test_rerank.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_team_member_permissions.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_team_tag_routing.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00