The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: req changes
Harshit Jain9b7b987b3590
diff --git a/litellm/integrations/datadog/datadog_metrics.py b/litellm/integrations/datadog/datadog_metrics.pyindex a22efd66000..70576d2d157 100644--- a/litellm/integrations/datadog/datadog_metrics.py+++ b/litellm/integrations/datadog/datadog_metrics.py@@ -209,16 +209,14 @@ class DatadogMetricsLogger(CustomBatchLogger):if not self.log_queue:return- try:- # We must only send the current batch, so copy and clear log queue- batch = self.log_queue.copy()- # Note: CustomBatchLogger clears queue in flush_queue, but we'll manually copy what we need-- payload_data: DatadogMetricsPayload = {"series": batch}+ batch = self.log_queue.copy()+ payload_data: DatadogMetricsPayload = {"series": batch}+ try:await self._upload_to_datadog(payload_data)-except Exception as e:+ # Re-insert failed batch so next flush retries+ self.log_queue.extend(batch)verbose_logger.exception(f"Datadog Metrics: Error in async_send_batch: {str(e)}")