-
Notifications
You must be signed in to change notification settings - Fork 895
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 process.threads #2705
Add process.threads #2705
Conversation
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.
Please update https://github.com/open-telemetry/opentelemetry-specification/blob/main/CHANGELOG.md as well
Changelog updated, thanks! |
Here is a bit I'll present tomorrow at the spec meeting: |
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 feel that this semantic convention belongs in the process.runtime.*
section. In Go, for example, there is no "thread" concept and we already have a runtime-metrics count of goroutines.
The suffix EDIT: this was already addressed..count
is problematic because of the way it will translate into Prometheus/OpenMetrics. I would suggest that process.runtime.threads
is a fine name, however--you will know it's a count because of the point kind.
@jmacd are you proposing |
I think the fact that Golang and Node.js don't have |
I'll take .NET as an example, |
I agree with @reyang - as said on Slack:
|
@jmacd and anyone - any insights or follow up? |
Let's discuss it on today's call (with whoever can make it) - hopefully we can merge this (either with minor renaming or not) today ;) |
Inside the go VM indeed cannot read threads, from outside you can actually read the number of OS threads for the go process. |
What is the next step here? |
@jmacd Do you have a strong instance against going with |
Changes
Adds a new metric,
process.threads
, to the process metrics available.Related issues open-telemetry/opentelemetry-collector-contrib#12482