Generate process metrics with semconv yaml#160
Generate process metrics with semconv yaml#160braydonk wants to merge 5 commits intoopen-telemetry:mainfrom
Conversation
|
Hi @joaopgrassi, I decided to open my changes as a draft PR so you could check my work. This is converting the metrics from |
joaopgrassi
left a comment
There was a problem hiding this comment.
@braydonk looks pretty good to me! I think all is in the right track :)
| @@ -0,0 +1,138 @@ | |||
| groups: | |||
| - id: process.cpu | |||
There was a problem hiding this comment.
| - id: process.cpu | |
| - id: attributes.process.cpu |
I started adding attributes. to attribute_group to easily spot that this is not a span/metric/log convention but just rather a "bag" of attributes to be shared.
| type: metric | ||
| metric_name: process.context_switches | ||
| brief: "Number of times the process has been context switched." | ||
| instrument: updowncounter |
There was a problem hiding this comment.
| instrument: updowncounter | |
| instrument: counter |
It's a counter today, do we want to change?
There was a problem hiding this comment.
Nope we want to keep a counter, that was a copy paste mishap 😄 thanks
jsuereth
left a comment
There was a problem hiding this comment.
Looks like you have a minor YAMLlint error
mx-psi
left a comment
There was a problem hiding this comment.
I have a similar comment to the one I left in #89 (review); this PR moves the metrics to YAML and also renames the attributes. If doing each of those changes separately is hard/undesirable, I think we should at least describe this clearly in the PR title, PR description and a changelog entry indicating what changes #51 entails for this set of metrics
|
@mx-psi I'm kind of confused, which part of this PR needs to be separated? I don't think I intentionally renamed any attributes; I tried to copy them directly from the existing document. If I missed any I will change them back. |
|
@braydonk the issue is when changing to YAML, the attributes such as There's no easy way to transform the existing metrics/attributes to YAML without this attribute name change, because in YAML the same attribute key cannot be repeated. The only way would be to define them under each metric which is very repetitive/tedious. I suggest you take the same approach as I did in #89 (comment) and document all the existing attributes vs how they are now with these changes. Plus, the changelog entry + schema file changes (You can see how I did in my PR). I think that should address @mx-psi concerns. |
|
Thanks @joaopgrassi I'll get that fixed soon. |
|
I've opened #330 instead. The commit history on this one was really messy with attempts to keep it up to date with main branch, so I started a new clean PR. |
No description provided.