litellm/tests/unit/integrations/datadog
yucheng 1c2ebb37b4 fix(logging): scrub the request's prompt out of failure error text when message logging is redacted
When message logging is redacted (globally, per request, or per callback), the
failure path still sent the provider's error text, which often quotes the
prompt, to every callback and to the proxy's spend log, DataDog and OTel
server span. Scrub the request's own text out of error_str, error_information
and traceback_exception instead of blanking them, so the error type, status
code and the rest of the wording stay.

Also carry a per-request redaction opt-in over to the proxy-only failure log,
whose field allowlist left it out.
2026-10-29 16:19:15 -07: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_datadog.py test(unit): keep unix socket paths in unit tests under the macOS AF_UNIX limit (#45040) 2026-10-28 20:23:22 -07:00
test_datadog_cost_management.py fix(logging): mark mirrored silent_model calls with is_silent_experiment in spend logs (#48888) 2026-10-29 05:12:50 -07:00
test_datadog_llm_obs.py refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
test_datadog_llm_obs_agent.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_datadog_logger_batching.py fix(logging): scrub the request's prompt out of failure error text when message logging is redacted 2026-10-29 16:19:15 -07:00
test_datadog_metrics.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_datadog_tags_regression.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_datadog_team_handler.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00