For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/serverless/azure_database_messaging_services/azure_cosmosdb.md. A documentation index is available at /llms.txt.

Serverless Monitoring for Azure Cosmos DB

Overview

Datadog APM uses inferred spans to collect traces and trace metrics from Azure Cosmos DB CRUD operations. These spans appear directly in flame graph and waterfall views. Cosmos DB distributed tracing requires no additional setup beyond existing instrumentation for APM users.

Datadog flame graph displaying Cosmos DB database spans alongside API and queue-processing spans in a distributed .NET application.

Supported runtimes

RuntimeMin tracer versionMin Lambda LayerMin Azure SDK
Python 3.10+dd-trace-py v4.8.0lambda-python v8.125.0azure-cosmos >= 4.9.0
Node.jsdd-trace-js v5.105.0N/A@azure/cosmos >= 4.4.1
.NETdd-trace-dotnet v3.36.0N/AMicrosoft.Azure.Cosmos.Client >= 3.12.0