-
Notifications
You must be signed in to change notification settings - Fork 164
Proposal: Add a version semantic attribute #38
Proposal: Add a version semantic attribute #38
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.
The Resource
currently allows to specify arbitrary key/value pairs. Is there a need to have Version
as a structured element rather than as a key/value pair with a pre-defined key value such as "version"? I am curious as to how version is different than other defining attributes of a resource.
text/0000-version-resource.md
Outdated
``` | ||
{ | ||
"version": { | ||
"type": "semver", |
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.
Why not "semver": "1.0.0"
?
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.
Is this meant in addition to existing resource objects?
e.g.
{
"type": "container",
"labels": {
....
},
"version" : {
....
}
}
(example from OpenCensus: https://github.com/census-instrumentation/opencensus-specs/blob/master/resource/Resource.md#exporter-translation)
The biggest rationale I had for making the That said, I think it'd also work to simply say |
Regardless of the medium, I think version will play a big factor, especially in metrics. I feel like if it's going to be defined in the spec, we should have some clear uses cases. What will this RFC enable us to do? |
@austinlparker there's a simpler way to achieve that with just the I am curious if the type of version actually matters, i.e. what exactly would one do differently knowing that the version is semver vs. git sha? |
* Add Tracer operations specs. Fixes open-telemetry#38. * recordSpanData should be async. * Fix typos. * Fix review comments. * Fix another typo. Co-Authored-By: Mayur Kale <[email protected]>
For TC members please vote: |
I'd rather modify it per Yuri's comments, they make sense. |
@austinlparker that will become a simple semantic convention for the version resource label or Span attribute |
Yes, but wouldn't changes to semantic conventions also go through the RFC process? |
I would say this is a very simple change that I would be happy to just review in the specs repo. My 2c: Let's try to keep a balance between what is required in RFC vs a small change/improvement in specs. |
I originally brought this up in the spec repo and it was suggested as an RFC (see open-telemetry/opentelemetry-specification#235). If y'all want it to go back there fine, but other people are making refs to this. |
Disclaimer: I am pretty new in the RFC model, but my understanding is that RFC are required when some important and complicated changes are proposed. Not trying to say that this is not important, but it becomes a very simple change if we follow Yuri's comment. |
In the current form I am happy to approve this, but I feel that you did a lot more work to get some minor change in the semantic conventions. I would like to hear others opinion, but don't want to block your work because I think it is good work. |
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 recommend changing this to APPROVED status, to reduce friction.
Looks fine to me either way - probably we should do as @yurishkuro says and approve it to reduce friction, and try to have this kind of relatively straightforward changes as Specification Issues instead (for the next times, that is). Probably we could also add a small note on that, as part of the RFC process docs? |
Co-Authored-By: Yuri Shkuro <[email protected]>
assigned 0038 and marked as approved per comments |
Can we please get this reviewed by one more approver? |
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
* add resource version rfc * fix typo * update due to feedback * Update text/0000-version-resource.md Co-Authored-By: Yuri Shkuro <[email protected]> * update number * remove old version * Rename 0038-version-resource.md to 0038-version-semantic-convention.md * Rename 0038-version-semantic-convention.md to 0038-version-semantic-attribute.md
* add resource version rfc * fix typo * update due to feedback * Update text/0000-version-resource.md Co-Authored-By: Yuri Shkuro <[email protected]> * update number * remove old version * Rename 0038-version-resource.md to 0038-version-semantic-convention.md * Rename 0038-version-semantic-convention.md to 0038-version-semantic-attribute.md
* add resource version rfc * fix typo * update due to feedback * Update text/0000-version-resource.md Co-Authored-By: Yuri Shkuro <[email protected]> * update number * remove old version * Rename 0038-version-resource.md to 0038-version-semantic-convention.md * Rename 0038-version-semantic-convention.md to 0038-version-semantic-attribute.md
* add resource version rfc * fix typo * update due to feedback * Update text/0000-version-resource.md Co-Authored-By: Yuri Shkuro <[email protected]> * update number * remove old version * Rename 0038-version-resource.md to 0038-version-semantic-convention.md * Rename 0038-version-semantic-convention.md to 0038-version-semantic-attribute.md
This proposes a resource (or sub-resource) that can identify the version of another resource.