-
Notifications
You must be signed in to change notification settings - Fork 358
Add Cosmos client-side observability layer #4789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NaluTripician
wants to merge
20
commits into
Azure:main
Choose a base branch
from
NaluTripician:nalutripician/cosmos-observability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4076048
Add DiagnosticsHandler chain to Cosmos SDK (WS2)
NaluTripician 5f85f21
Bound Cosmos diagnostics under retry storms
NaluTripician 06bcb04
Add OpenTelemetry metrics handler for Cosmos (WS3)
NaluTripician 8659a5d
Add Cosmos tail-sampled tracing and sampling log
NaluTripician 2a745d7
Merge remote-tracking branch 'upstream/main' into nalutripician/cosmo…
NaluTripician 22640d1
Merge remote-tracking branch 'origin/nalutripician/cosmos-obs-ws6-bou…
NaluTripician 618b238
Merge remote-tracking branch 'origin/nalutripician/cosmos-obs-ws3-met…
NaluTripician 308dac3
Merge WS3 metrics, WS45 emission, WS6 bounding into observability
NaluTripician bb1dade
Wire op-scope context to diagnostics handlers (WS8)
NaluTripician a872e5a
Fold corrected Cosmos diagnostics contract doc into PR-OBS
NaluTripician b445087
Address review comments on Cosmos observability
NaluTripician ef64112
cosmos: mark active_instance.count metric as deferred in contract
NaluTripician 6360d1f
cosmos: fix rustdoc CI + address second Copilot review round
NaluTripician 149aee6
Merge upstream/main into cosmos-observability
NaluTripician 5849ac7
Merge branch 'main' into nalutripician/cosmos-observability
NaluTripician 74c29b7
Address review feedback on Cosmos observability layer
NaluTripician 4d0216e
Address maintainer review nits on observability layer
NaluTripician 1f2a3d1
Add handler-propagation e2e tests; fix metrics meter doc
NaluTripician 328027f
Address re-review: bounded truncation, effective status, DTX seam
NaluTripician 50e1fd8
Harden rate limiter, anchor span end, fix doc link
NaluTripician File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprised the driver doesn't have this context. Doesn't it have these on
CosmosOperation?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has some of it.
CosmosOperationcarries theContainerReference(database + container names) and anOperationType/ResourceType, but two gaps makeCosmosOperationContextworthwhile: (1) the handler chain receives the finalizedDiagnosticsContext, not theCosmosOperation— the driver's context deliberately doesn't embed the caller-facing identity; and (2) the semconvdb.operation.name(read_itemvsquery_items) is an SDK-level name, finer-grained than the driver's coarseOperationType. The alternative is threading the identity onto the driver'sDiagnosticsContext, but that pushes SDK naming concerns into the driver. Happy to go that way if you'd prefer.