-
Notifications
You must be signed in to change notification settings - Fork 174
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
Add .NET metrics #283
Add .NET metrics #283
Conversation
Discussed at Semconv SIG meeting:
We'll need to find the balance, but it's not a blocker |
@lmolkova Thanks for moving this forward.
It looks good to me.
Also fine. We'll be responsible for keeping it up to date. @noahfalk to confirm. I think the plan for .NET docs and metrics will be to have a list of meters and counter type+name+descriptions on learn.microsoft.com. It will act as an easy-to-read summary. Then, we'll link to OpenTelemetry semantic conventions for details about each counter (unit, attributes, example values). .NET 8 RC1 will ship with these counter names and values. It should be released in the next week. After that, this PR is good to merge, and we can update the learn.microsoft.com docs to point towards them. Are there any more questions to resolve? |
Yeah, that seems fine. One caveat is that I'm not expecting to be actively monitoring for PRs that weren't originated by the .NET team so you may need to ping me if something needs review. I assume other people making PRs to the .NET area of the content wouldn't occur often. |
we'll want to set up a semantic-conventions/.github/CODEOWNERS Lines 30 to 32 in db3a9aa
|
.NET 8 RC1 shipped with these counter names. What is remaining to do before this can be merged? |
ae52c58
to
b3439b1
Compare
@trask sounds great! is there a process to request a new group or we do it ad-hoc? |
|
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.
I'm wondering about the plan for metrics included in this PR that aren't really .NET specific (dns.*
and http.client.*
).
Are we planning to pull those out eventually into domain specific conventions (HTTP, and the not yet existing DNS)? If so, are .NET folks willing to accommodate any possible changes resulting from that? If not, aren't we running the risk of introducing possibly conflicting conventions for the same thing (e. g. open HTTP client connections as reported by .NET, and as defined in domain-specific HTTP conventions)?
aed0cdd
to
52ef15b
Compare
I will leave it to .NET folks to decide/confirm, but my considerations are:
I'm happy to extract common parts and share them as experimental semcov. If anything significant changes there p3 (above) would still apply |
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.
Thanks @lmolkova, my main concerns have been addressed.
I will leave it to .NET folks to decide/confirm, but my considerations are:
- The unification process would likely bring breaking changes (names, attributes, etc) if it happens
- If a new standard+stable metric for something like DNS is introduced, .NET will have to adjust or stay incompatible.
- I assume breaking changes would be considered one-by-one and if the decision is to break, it should be possible with the next major.NET version (which is now happening yearly)
Fair. I still find it problematic to have .NET specific semantic conventions which define metrics that aren't .NET specific (HTTP and DNS), I'd rather have those defined in the domain specific sections and .NET use them from there.
I think this can pose problems if those .NET specific semantic conventions are declared stable: if folks want to add language-independent DNS metrics after .NET specific semantic are declared stable, one is either constrained to take over what .NET has defined without breaking it, or one ends up with conflicting definitions for DNS metrics.
However, this isn't a grave problem as long as .NET semantic conventions aren't declared stable, so I'm fine approving this as initial experimental state.
d777d26
to
fc5ba85
Compare
5bd6856
to
704113a
Compare
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.
Client part LGTM. Thanks for the patience with the reviews!
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.
I'm good with this hitting the Semconv repository for documentation purposes.
However, I would like to see the dotnet semconv approvers group created before merge.
thank you @jsuereth ! The group already exists - #355. |
.NET 8 (currently in release-candidate status) introduced a bunch of client and server metrics mostly related to HTTP inside the platform. This PR documents them.
Open questions:
Why keep .NET semconv here: