-
Notifications
You must be signed in to change notification settings - Fork 139
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
Merge *.cpu.state attributes to a common cpu.state attribute #1026
base: main
Are you sure you want to change the base?
Conversation
de27ecd
to
dbd49a4
Compare
members: | ||
- id: user | ||
value: 'user' | ||
brief: "When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows)." |
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.
btw we are missing these briefs now in actual attributes. You can add metric specific brief additionally to the ref
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.
Well, these are the briefs of the specific members not the attributes.
If we want to provide specific brief per metric family we would need to redefine the whole attribute's members I guess?
That sounds weird to me, that's why I propose to completely merge them and make the descriptions generic.
@open-telemetry/semconv-system-approvers what do you think about this?
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 understand, you are correct we can't currently redefine specific members of enums
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.
Keeping this open as I would love to get feedback from @open-telemetry/semconv-system-approvers here.
If we really want to provide specific descriptions for the enum's members per namespace then maybe this merging we are attempting here does not really make sense 🤔 ?
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.
To me the deciding factor here is whether the different descriptions are clarifications or if they are truly different things. At a first glance, it sounds to me like they are clarifications
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.
@braydonk @jamesmoessis any thoughts here?
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.
We discussed about it during the last System Metrics WG (May 30th).
What we conclude on is that we would like to have the option to override the briefs and only use a subset of the defined members.
In that case the merging makes sense.
I see that open-telemetry/build-tools#192 would potentially solve this.
So I wonder if we should wait for it then.
/cc @trisch-me @lmolkova
57eee6d
to
beb92b9
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.
LGTM
I think you need to re-generate the make generate-gh-issue-templates
though
Thank's @joaopgrassi. For some reason the |
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
848fa37
to
a7e9c02
Compare
@open-telemetry/semconv-system-approvers could you take a look and specifically into the #1026 (comment)? Thank's. |
<!-- NOTE: THIS FILE IS AUTOGENERATED. DO NOT EDIT BY HAND. --> | ||
<!-- see templates/registry/markdown/attribute_namespace.md.j2 --> | ||
|
||
# Cpu |
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.
you need to update templates/registry/markdown/weaver.yaml
and add CPU to the list of acronyms
brief: "When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)." | ||
stability: experimental | ||
stability: experimental | ||
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' |
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.
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' | |
deprecated: 'Replaced by `cpu.state`' |
attributes: | ||
- id: process.cpu.state | ||
brief: "Deprecated, use `cpu.state` instead." | ||
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' |
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.
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' | |
deprecated: 'Replaced by `cpu.state`' |
stability: experimental | ||
brief: "Deprecated, use `cpu.state` instead." | ||
stability: experimental | ||
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' |
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.
deprecated: 'Removed, report cpu state with `cpu.state` common attribute' | |
deprecated: 'Replaced by `cpu.state`' |
Fixes #840
Changes
This PR introduces a common
cpu.state
attribute which is a converged attribute from thesystem.cpu.state
,process.cpu.state
andcontainer.cpu.state
.Merge requirement checklist
[chore]