Query: Adds GetIndexMetrics LINQ extension method#5313
Merged
microsoft-github-policy-service[bot] merged 15 commits intomasterfrom Aug 7, 2025
Merged
Query: Adds GetIndexMetrics LINQ extension method#5313microsoft-github-policy-service[bot] merged 15 commits intomasterfrom
microsoft-github-policy-service[bot] merged 15 commits intomasterfrom
Conversation
Contributor
Contributor
Author
not really even sure why the headers are being set here. The execute scalre returns T, so it's not like it's possible to access Headers related information - so I don't think we need to update this In reply to: 3120612275 Refers to: Microsoft.Azure.Cosmos/src/Linq/CosmosLinqQuery.cs:242 in 9f52d3a. [](commit_id = 9f52d3a, deletion_comment = False) |
adityasa
reviewed
Aug 4, 2025
adityasa
reviewed
Aug 4, 2025
added 3 commits
August 4, 2025 14:06
adityasa
reviewed
Aug 4, 2025
kirankumarkolli
previously approved these changes
Aug 7, 2025
added 2 commits
August 7, 2025 12:00
…m/Azure/azure-cosmos-dotnet-v3 into users/leminh/ResponseINdexMetrics
kirankumarkolli
approved these changes
Aug 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
This PR adds a new extension method
GetindexMetricsthat can be used on aResponse<T>object to get the index metrics information. Normally, the index metrics is only accessible viaFeedResponse.IndexMetrics. This provide an additional way to obtain this information when using LINQ async extension method like CountAsync/SumAsync/AvgAsync, whose return type is aResponse<TSource>.As part of this fix, this PR also address these async method not populating
IndexUtilizationTextfield on theResponseobject as well.Type of change
Please delete options that are not relevant.
Closing issues
To automatically close an issue: closes #IssueNumber