Skip to content

Commit 80d30bf

Browse files
committed
Fix error in NoSQL query metrics article
1 parent ec0dfb2 commit 80d30bf

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)