-
Notifications
You must be signed in to change notification settings - Fork 494
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
OpenTelemetry Metrics: Adds support to collect Operation level metrics #4682
Merged
microsoft-github-policy-service
merged 52 commits into
master
from
users/sourabhjain/otelmetriccpu
Nov 24, 2024
Merged
OpenTelemetry Metrics: Adds support to collect Operation level metrics #4682
microsoft-github-policy-service
merged 52 commits into
master
from
users/sourabhjain/otelmetriccpu
Nov 24, 2024
Conversation
This file contains 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
sourabh1007
requested review from
khdang,
sboshra,
adityasa,
neildsh,
kirankumarkolli,
FabianMeiswinkel and
kirillg
as code owners
September 13, 2024 02:52
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
from
September 13, 2024 02:55
c47f59b
to
6fc4195
Compare
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
2 times, most recently
from
September 16, 2024 02:30
f4c3132
to
512f1ed
Compare
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
4 times, most recently
from
September 26, 2024 13:52
6e89d3a
to
fb81cfa
Compare
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
from
September 30, 2024 05:37
c686b4d
to
320e618
Compare
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
6 times, most recently
from
October 17, 2024 06:46
803f71e
to
3c1be6b
Compare
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
from
October 18, 2024 05:41
275f5db
to
ae206c9
Compare
Open
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
from
November 14, 2024 15:32
ae5e2c3
to
6d6957b
Compare
Microsoft.Azure.Cosmos/src/Telemetry/OpenTelemetry/CosmosDbClientMetrics.cs
Show resolved
Hide resolved
sourabh1007
force-pushed
the
users/sourabhjain/otelmetriccpu
branch
from
November 20, 2024 16:37
6a98f46
to
a9eeba6
Compare
kirankumarkolli
approved these changes
Nov 23, 2024
kundadebdatta
approved these changes
Nov 23, 2024
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.
Overall looks LGTM
microsoft-github-policy-service
bot
deleted the
users/sourabhjain/otelmetriccpu
branch
November 24, 2024 00:56
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.
Description
CosmosClientTelemetryOptions
i.e.IsClientMetricsEnabled
, to enable/disable metrics. By default, it would be disabled. (inspired from Java SDK https://github.com/Azure/azure-sdk-for-java/blob/5bc07ca75c7c0520c1098b5a6264258b6e043435/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosClientTelemetryConfig.java#L61)enabled
, collecting below metrics ref. Cosmos DB: Operation Level Metrics open-telemetry/semantic-conventions#1438ref. Java Metric Doumentation, https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos/docs/Metrics.md
ref. Discussion with open telemetry community open-telemetry/semantic-conventions#1438
this PR has Contract Changes.
Perf Testing
I haven't observed any performance impact from this change. In this feature, any performance issues would likely stem from the Exporter implementation or the aggregation interval. The tests were conducted using a no-op exporter subscribed to these meters to isolate any performance impact specifically related to data recording
Type of change