Thanks for the answer. We have tried all possible config in the doc to disable diagnostics. But we still see them being generated:
{
"Summary": {
"DirectCalls": {
"(200, 0)": 1
}
},
"name": "Typed FeedIterator ReadNextAsync",
"start datetime": "2025-03-06T16:07:57.211Z",
"duration in milliseconds": 154.5253,
"data": {
"Client Configuration": {
"Client Created Time Utc": "2025-03-06T16:07:25.2262627Z",
"MachineId": "hashedMachineName:328bf82f-9190-3277-09bb-902bd328b41e",
"NumberOfClientsCreated": 2,
"NumberOfActiveClients": 2,
"ConnectionMode": "Direct",
"User Agent": "cosmos-netstandard-sdk/3.47.2|2|X64|Microsoft Windows 10.0.22621|.NET 8.0.12|N|",
"ConnectionConfig": {
"gw": "(cps:50, urto:6, p:False, httpf: False)",
"rntbd": "(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)",
"other": "(ed:False, be:False)"
},
"ConsistencyConfig": "(consistency: NotSet, prgns:[], apprgn: )",
"ProcessorCount": 8
},
"Query Correlated ActivityId": "ab1f5242-148d-4c61-87f9-a5efb5c7023c"
},
"children": [
{
"name": "Create Query Pipeline",
"duration in milliseconds": 0.5506,
"children": [
{
"name": "Get Container Properties",
"duration in milliseconds": 0.0167,
"children": [
{
"name": "Get Collection Cache",
"duration in milliseconds": 0.0018
}
]
},
{
"name": "Service Interop Query Plan",
"duration in milliseconds": 0.4108
},
{
"name": "Get Partition Key Ranges",
"duration in milliseconds": 0.0616,
"children": [
{
"name": "Try Get Overlapping Ranges",
"duration in milliseconds": 0.0344
}
]
}
]
},
{
"name": "MoveNextAsync",
"duration in milliseconds": 134.2758,
"children": [
{
"name": "[,FF) move next",
"duration in milliseconds": 134.2486,
"children": [
{
"name": "Prefetch",
"duration in milliseconds": 134.2398,
"children": [
{
"name": "[,FF) move next",
"duration in milliseconds": 134.215,
"data": {
"Query Metrics": "Retrieved Document Count : 10 \r\nRetrieved Document Size : 307,343 bytes \r\nOutput Document Count : 10 \r\nOutput Document Size : 285,076 bytes \r\nIndex Utilization : 100.00 % \r\nTotal Query Execution Time : 3.19 milliseconds\r\n Query Preparation Time : 0.20 milliseconds\r\n Index Lookup Time : 0.25 milliseconds\r\n Document Load Time : 0.20 milliseconds\r\n Runtime Execution Times : 0.01 milliseconds\r\n Document Write Time : 2.10 milliseconds\r\n\r\nIndex Utilization Information\r\n Utilized Single Indexes\r\n Potential Single Indexes\r\n Utilized Composite Indexes\r\n Potential Composite Indexes\r\n"
},
"children": [
{
"name": "Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler",
"duration in milliseconds": 134.0625,
"children": [
{
"name": "Get Collection Cache",
"duration in milliseconds": 0.0008
},
{
"name": "Get Partition Key Range Cache",
"duration in milliseconds": 0.0003
},
{
"name": "Try Get Overlapping Ranges",
"duration in milliseconds": 0.0068
},
{
"name": "Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler",
"duration in milliseconds": 133.9785,