azcosmos: include partition key in read many telemetry - #27491
Merged
Tomas Varon (tvaron3) merged 5 commits intoAug 31, 2026
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e711ffc-e2b2-4eeb-aba7-cd96e0c720d3
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e711ffc-e2b2-4eeb-aba7-cd96e0c720d3
|
Azure Pipelines: Successfully started running 2 pipeline(s). 5 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e711ffc-e2b2-4eeb-aba7-cd96e0c720d3
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e711ffc-e2b2-4eeb-aba7-cd96e0c720d3
|
Azure Pipelines: Successfully started running 2 pipeline(s). 5 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds logical partition-key telemetry to ReadManyItems while preserving cross-partition behavior.
Changes:
- Reuses canonical partition-key comparison.
- Sets headers only for complete, shared partition keys.
- Adds scalar, hierarchical, mixed-key, and signed-zero tests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
cosmos_query_builder.go |
Reuses shared partition-key detection. |
cosmos_container_read_many.go |
Adds shared-key header selection. |
cosmos_container_read_many_test.go |
Tests partition-key header behavior. |
CHANGELOG.md |
Documents the telemetry fix. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Kevin Pilch (Pilchie)
approved these changes
Aug 31, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e711ffc-e2b2-4eeb-aba7-cd96e0c720d3
Kevin Pilch (Pilchie)
approved these changes
Aug 31, 2026
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.
Fixes #27476.
Summary
ReadManyItemsrequests when all items share the same partition key