-
Notifications
You must be signed in to change notification settings - Fork 58
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
Semconv code generator example does not work for opentelemetry-specifications 1.14.0 #122
Comments
Have you tried just running it over everything, i.e. |
Thanks @Oberon00 Adjusted the generation script to:
and this now works for opentelemetry-cpp with 1.14.0 specs. |
|
See open-telemetry/opentelemetry-java#4938 for an example of what isn't working right. |
This is also happening in opentelemetry-dotnet when trying to update from semconv 1.13 to 1.17 when using generator versions 0.14.0, 0.15.0, and 0.15.1. Adding docker run --rm `
-v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions/trace:/source `
+ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions/exception.yaml:/source/exception.yaml `
-v ${SCRIPT_DIR}/templates:/templates `
-v ${ROOT_DIR}/Trace:/output `
otel/semconvgen:$GENERATOR_VERSION The result included some unexpected (to me) changes though. |
Is this still a concern? |
Hi Christian, As indicated on Oct 18, 2022, I was able to fix the opentelemetry-cpp generation scripts to make this work. The documentation, however, was never updated, so yes, the instructions from the documentation do not work, which was the problem originally reported, and is still a concern. Given that semantic conventions have migrated to their own repository, I would suggest to wait on the first release there, and then update the documentation with working instructions. This will help every language repositories to adjust code generation scripts to the new code layout. Related: |
obsolete |
Repo opentelemetry-cpp successfully used the semconv code generator already on 1.13.0 specs.
See the generate script used:
generate.sh
Now trying to upgrade to 1.14.0 opentelemetry-specification:
SEMCONV_VERSION=1.14.0
The build fails with this error message:
In the 1.14.0 specs, indeed, file
semantic_conventions/trace/trace-exception.yaml
uses the exception defined in
semantic_conventions/exception.yaml
Because the docker mount point used is
semantic_conventions/trace/
,the docker image does not see file
exceptions.yaml
I hope this helps to narrow down the root cause.
No idea about a fix however.
Please fix and adjust the example to work with the latest semantic conventions from the specs,
as this is needed for each language SIG in general.
[resolved] Blocking for open-telemetry/opentelemetry-cpp#1671
The text was updated successfully, but these errors were encountered: