Skip to content
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

feat: generate semconv v1.17.0 #4102

Closed

Conversation

ttd2089
Copy link

@ttd2089 ttd2089 commented Jan 25, 2023

Generates SemanticConventions from the v1.17.0 schemas.

Fixes #4101

There is an open issue in the generator that caused mounting subfolders during the docker run steps to fail due to exception.yaml being absent. Mounting that file explicitly made the error go away but it's not clear whether that produces the desired code or just runs without an error. There are at least a few changes in the generated source that don't appear when in the spec changelog when comparing v1.13.0 to v.1.17.0:

  • code.column
  • messaging.source.kind
  • messaging.source.template

I'm going to take a closer look at this tomorrow but I figured I'd open the PR for visibility anyway in case someone else can make sense of the differences more quickly than I can.

Generates SemanticConventions from the v1.17.0 schemas. There is an open
issue in the generator that caused mounting subfolders during the
`docker run` steps to fail due to exception.yaml being absent --
mounting that file explicitly made the error go away but it's not clear
whether that produces the desired code or just runs without an error.
There are at least a few changes in the generated source that don't
appear when in the spec changelog when comparing v1.13.0 to v.1.17.0:
- code.column
- messaging.source.kind
- messaging.source.template
@@ -3,9 +3,9 @@ $SCRIPT_DIR=$PSScriptRoot
$ROOT_DIR="${SCRIPT_DIR}/../../"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also .sh script in the same folder. It should be modified in the same way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

$SCHEMA_URL="https://opentelemetry.io/schemas/$SPEC_VERSION"
$GENERATOR_VERSION="0.14.0"
$GENERATOR_VERSION="0.15.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see also 0.15.1 version. Does it fix mentioned issue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I tried both but I'll double check.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I get the same error with 0.14, 0.15, and 0.15.1; but I updated to 0.15.1 anyway.

Updates the generator version to 0.15.1 and replicates the updates into
the generate.sh script. This doesn't fix the need for the extra volume
mount but it's still not clear whether that's a workaround or just
something that's required now.
@cijothomas
Copy link
Member

@ttd2089 Could you update the public api files, given there are new conventions now. Also add an entry to changelog to indicate the new version.
Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions bot added the Stale label Feb 8, 2023
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SemanticConventions attribute name constants differ from spec
4 participants