-
Notifications
You must be signed in to change notification settings - Fork 191
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
Update build-tools version to 0.25.0 and add display_name
to all registry attribute groups
#985
Update build-tools version to 0.25.0 and add display_name
to all registry attribute groups
#985
Conversation
To make CI happy we need also: open-telemetry/build-tools#316 |
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.
thanks for quick implementing it. @jsuereth could add this now into the final PR to populate correct name
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
One question though - should we enforce then a presence of this property for registry? |
yeah, I guess we could extend open-telemetry/build-tools#316 to include it in the validity checks |
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.
Could you please create an issue to update schema definition (or just update the schema definition) in the https://github.com/open-telemetry/build-tools/blob/main/semantic-conventions/semconv.schema.json to include it?
We want to move it to this repo #916, but it's not done yet
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
@JamesNK (Just fyi - This looks like a minor cosmetic change) |
Once we get the rule-engine/checker working in weaver, this is a simple configuration for semantic-conventions. Let's see if we can get that prioritized as a the next feature we need from weaver for semconv. |
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.
Thanks for adding all of these.
We need to update both build-tools and weaver. I merged your build-tools change (will need a release) but we'll also need to update weaver.
Since the weaver PR merged, you should be able to actually update the weaver attribute_group.md.j2
template to use this value in this PR.
Done, see: open-telemetry/build-tools#317 |
f1de3db
to
99a7e60
Compare
@jsuereth Done with the last commit. |
@AlexanderWert I think you need to run |
That's not working yet, I'm getting a validation error from weaver. So, as @jsuereth mentioned above, we need to fix weaver validation first and release a new docker image, I guess. @jsuereth What exactly needs to be done to fix the weaver validation? Is it just about adding |
@AlexanderWert Yes - I think that change (and propagation of its value) should be what you need to do in weaver. There's also a TemplateGroup: https://github.com/open-telemetry/weaver/blob/main/crates/weaver_forge/src/registry.rs#L29 Once you have Group / TemplateGroup updated and wired - we can immediately start rendering this attribute in the registry. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Can we make it required only for registry attribute groups? |
we can enforce through the policies that this attribute is required for registry |
Hum I think not, specially in the JSON schema but also on Weaver. What we can do is in the jinja template we check if display name exists and if not, we use the old behavior. I gave that a try and it worked for me locally. |
Ah really? Then forget my comment above 👍 |
but until we have it implemented we can just use the workaround you proposed |
@AlexanderWert are you able to continue this work, or should one of us take over? |
I'll update the PR with your proposal |
99a7e60
to
ed9e92e
Compare
@joaopgrassi updated this PR I think we need both releasing and updating the weaver version AND build tools, right? |
Weaver for sure we need a new release. For build-tools I'm not sure.. but I assume we might (maybe bcs of the JSON schema?) @lquerel can we have a new Weaver release? |
Oh, I think we still need a build-tools release for this. |
@joaopgrassi The release v0.5.0 of Weaver contains this feature. |
Yes, we have the release and already updated Weaver version in semconv. @AlexanderWert will update the PR because it needs some changes before merging. |
041404b
to
a58d553
Compare
@joaopgrassi @lmolkova @lquerel PTAL, I also changed the order of the generated groups to make sure deprecated attributes are always listed at the end (instead of pure alphabetical order) |
a58d553
to
cc908f4
Compare
@lmolkova The compatibility check still fails. That has been actually fixed in these PRs, but we did not have a build-tools release since then: So, I guess we need to do a new release of the build tools and update it here. |
@AlexanderWert build-tools v0.25.0 were just published, could you try updating? Thanks! |
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
…ed groups to make deprecated groups to be always at the end. Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
9577def
to
b11329d
Compare
display_name
property to all registry attribute groupsdisplay_name
to all registry attribute groups
Fixes #978