Skip to content

feat: add datadog cost management support and fix startup callback issue - #19584

Merged
1 commit merged into
BerriAI:litellm_oss_staging_01_23_2026from
Harshit28j:feat/datadog-cost-management
Jan 23, 2026
Merged

feat: add datadog cost management support and fix startup callback issue#19584
1 commit merged into
BerriAI:litellm_oss_staging_01_23_2026from
Harshit28j:feat/datadog-cost-management

Conversation

@Harshit28j

Copy link
Copy Markdown
Contributor

Relevant issues

Fixes startup crash when datadog_cost_management callback is configured in config.yaml

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🆕 New Feature
🐛 Bug Fix

Changes

New Feature: Datadog Cloud Cost Management Integration

Added support for sending aggregated LLM cost data to Datadog Cloud Cost Management in FOCUS format.

Key Features:

  • Aggregates costs by Provider, Model, Date, and Tags
  • Batched uploads to Datadog Custom Costs API
  • Configurable via callbacks: ["datadog_cost_management"]
  • Requires DD_API_KEY and DD_APP_KEY environment variables

Files Added:

  • litellm/integrations/datadog/datadog_cost_management.py - Core implementation
  • litellm/types/integrations/datadog_cost_management.py - Type definitions
  • tests/test_litellm/integrations/datadog/test_datadog_cost_management.py - Unit tests (4 tests, all passing)

Files Modified:

  • litellm/proxy/common_utils/callback_utils.py - Added proper instantiation for datadog_cost_management
  • litellm/integrations/callback_configs.json - Added UI configuration
  • docs/my-website/docs/observability/datadog.md - Added documentation

Testing:

  • All 4 unit tests pass
  • Manual verification: proxy starts successfully and processes requests
  • Cost aggregation and batching verified in logs

@vercel

vercel Bot commented Jan 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Error Error Jan 22, 2026 7:08pm

Request Review

@ghost
ghost changed the base branch from main to litellm_oss_staging_01_23_2026 January 23, 2026 03:52
@ghost
ghost merged commit 06a7497 into BerriAI:litellm_oss_staging_01_23_2026 Jan 23, 2026
3 of 7 checks passed
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant