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

[SEMANTIC CONVENTIONS] Code generation script fails on SELINUX #2454

Closed
marcalff opened this issue Dec 14, 2023 · 0 comments · Fixed by #2455
Closed

[SEMANTIC CONVENTIONS] Code generation script fails on SELINUX #2454

marcalff opened this issue Dec 14, 2023 · 0 comments · Fixed by #2455
Assignees
Labels
bug Something isn't working

Comments

@marcalff
Copy link
Member

The docker run command:

docker run --rm \
  -v ${SCRIPT_DIR}/tmp-semconv/model:/source \
  -v ${SCRIPT_DIR}/templates:/templates \
  -v ${ROOT_DIR}/api/include/opentelemetry/trace/:/output \
  otel/semconvgen:$GENERATOR_VERSION \
  --only span,event,attribute_group,scope \
  -f /source code \
  --template /templates/SemanticAttributes.h.j2 \
  --output /output/semantic_conventions.h \
  -Dsemconv=trace \
  -Dclass=SemanticConventions \
  -DschemaUrl=$SCHEMA_URL \
  -Dnamespace_open="namespace trace {" \
  -Dnamespace_close="}"

fails, because mounting volumes:

  -v ${SCRIPT_DIR}/tmp-semconv/model:/source \

does not allow to see the model yaml files.

@marcalff marcalff added the bug Something isn't working label Dec 14, 2023
@marcalff marcalff self-assigned this Dec 14, 2023
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 14, 2023
marcalff added a commit to marcalff/opentelemetry-cpp that referenced this issue Dec 14, 2023
@marcalff marcalff removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant