litellm/tests/unit/integrations/datadog
yucheng-berri bb29e9a5b7
fix(datadog): send DD_TAGS on Datadog logs and LLM Observability spans (#52415)
* fix(datadog): include DD_TAGS on LLM Observability spans

* fix(datadog): split space-separated DD_TAGS like ddtrace and type the new tests

* fix(datadog): keep LiteLLM's env, service, version and team when DD_TAGS repeats them

* fix(datadog): send DD_TAGS per LLM Observability span so a request's team is not doubled by batch tags

* fix(datadog): let a span's own user, key_alias, model_group and router tags replace DD_TAGS values

* refactor(datadog): append DD_TAGS after LiteLLM's own tags and skip keys already tagged

* refactor(datadog): build the DD_TAGS list without mutation and type the new tests

---------

Co-authored-by: Christopher Flocke <61875536+cflocke-codecentric@users.noreply.github.com>
2026-11-18 20:27:30 +00:00
..
__init__.py
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 fix(datadog): send DD_TAGS on Datadog logs and LLM Observability spans (#52415) 2026-11-18 20:27:30 +00:00
test_datadog_llm_obs_agent.py
test_datadog_logger_batching.py
test_datadog_metrics.py
test_datadog_tags_regression.py fix(datadog): send DD_TAGS on Datadog logs and LLM Observability spans (#52415) 2026-11-18 20:27:30 +00:00
test_datadog_team_handler.py