litellm/tests/unit/integrations/langfuse
Shivam Rawat 1b62821ba9
fix(otel v2): stop legacy langfuse loggers sending to refused key/team hosts (#51344)
* fix(otel v2): stop the legacy langfuse_otel logger exporting to refused key/team hosts

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(otel v2): assert the refused-host regression through public config and header outputs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(otel v2): refuse key/team langfuse hosts in the langfuse callback and prompt fetch, and fail closed on unparseable hosts

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(otel v2): check the langfuse SDK clients against the http URL they actually call

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(otel v2): skip allowlist entries that won't parse and read the V2 flag only for unlisted hosts

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(otel v2): a malformed key/team langfuse host drops only its own destination

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* perf(otel v2): read the V2 flag before the allowlist and cache the allowlist and flag checks

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-16 11:34:20 -08:00
..
langfuse_expected_request_body fix(cost): preserve Bedrock cross-region pricing for Messages (#51479) 2026-11-12 15:54:56 -08:00
__init__.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_gemini_cached_tokens.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_langfuse.py fix(cost): preserve Bedrock cross-region pricing for Messages (#51479) 2026-11-12 15:54:56 -08:00
test_langfuse_dynamic_credentials.py test: move offline logging, secret manager and provider tests from legacy dirs into tests/unit (#45554) 2026-10-09 09:48:10 -07:00
test_langfuse_handler.py fix(otel v2): stop legacy langfuse loggers sending to refused key/team hosts (#51344) 2026-11-16 11:34:20 -08:00
test_langfuse_prompt_management.py fix(otel v2): stop legacy langfuse loggers sending to refused key/team hosts (#51344) 2026-11-16 11:34:20 -08:00
test_langfuse_sdk.py fix: cap cold MCP schema workers at usable CPUs and deflake wall-clock unit tests (#45791) 2026-10-15 00:47:59 -07:00