-
Notifications
You must be signed in to change notification settings - Fork 196
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
Move process metric attributes to the registry #681
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,38 @@ groups: | |
An additional description about the runtime of the process, for example | ||
a specific vendor customization of the runtime environment. | ||
examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' | ||
- id: registry.process.attributes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why isn't this nested together with the rest of attributes here? At the top there's already
You can define There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The above group has type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was a temp fix because of broken build-tools. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With above mentioned PR merged you could define new attribute group under top process There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's try to push to get that one merged, so we can move forward with this one 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We found out we are still blocked by the resource/group type issue with the build tools. Folks are working on it hopefully soon we can unblock this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should now be unblocked with #820 |
||
prefix: process | ||
type: attribute_group | ||
brief: > | ||
Metric attributes that appear on some process metrics. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is in the registry, it's not about only metrics anymore. Either remove this or maybe change the sentence so it's "generic" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see these attributes being used on anything other than process metrics, so I'm not sure how to reword either one to be generic. These are attributes that appear on some process metrics, and that's probably it. How should this be reworded? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hum.. the whole point of the registry is for re-usability. Then I'm wondering if we really need to move all of these attributes to the registry? 🤔 I'm actually now wondering where the need for this came now. I don't think other metrics have their attributes defined in the registry. Could you clarify maybe? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was requested here: #330 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We are currently requiring all attributes in semconv to be part of the registry. This is to enable x-signal journeys where something my start as an EVENT then become a METRIC. I think your concern is related to #394. Let's fix that issue, but no block metrics moving their attributes to the registry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would by any chance make sense to unify them? Related to #765 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are some CPU states for In a So for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having one's allowed values being a subset of the other one's values makes sense to me. Not sure if this can somehow be "templated" with SemConv's rulings. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
attributes: | ||
- id: cpu.state | ||
brief: "The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also here: It talks about metric things (data points) but we are in the registry. This should be adapted when you use the attribute There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to add a brief with a ref? In that case I will just delete it here and add the briefs in with the refs in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, you can override when using But if this is just used in metrics as you mentioned above, then leaving here is fine. |
||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: system | ||
value: 'system' | ||
- id: user | ||
value: 'user' | ||
- id: wait | ||
value: 'wait' | ||
- id: paging.fault_type | ||
brief: "The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults." | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: major | ||
value: 'major' | ||
- id: minor | ||
value: 'minor' | ||
- id: context_switch_type | ||
brief: "Specifies whether the context switches for this data point were voluntary or involuntary." | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: voluntary | ||
value: 'voluntary' | ||
- id: involuntary | ||
value: 'involuntary' |
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 think this part should stay here and we are moving into registry only attributes i.e.
state