Skip to content

Commit 3d47123

Browse files
Merge pull request #278775 from seesharprun/cosmos-fix-query-metrics-code
Cosmos DB | Fix error in NoSQL query metrics article
2 parents 73379a3 + 80d30bf commit 3d47123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/nosql/query-metrics-performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ while (feedIterator.HasMoreResults)
7575
FeedResponse<MyClass> feedResponse = await feedIterator.ReadNextAsync();
7676

7777
// Store the ServerSideCumulativeMetrics object to aggregate values after all round trips
78-
metrics.Add(response.Diagnostics.GetQueryMetrics());
78+
metrics.Add(feedResponse.Diagnostics.GetQueryMetrics());
7979
}
8080

8181
// Aggregate values across trips for metrics of interest
@@ -108,7 +108,7 @@ while (feedIterator.HasMoreResults)
108108
FeedResponse<MyClass> feedResponse = await feedIterator.ReadNextAsync();
109109

110110
// Store the ServerSideCumulativeMetrics object to aggregate values after all round trips
111-
metrics.Add(response.Diagnostics.GetQueryMetrics());
111+
metrics.Add(feedResponse.Diagnostics.GetQueryMetrics());
112112
}
113113

114114
// Group metrics by partition key range id

0 commit comments

Comments
 (0)