-
Notifications
You must be signed in to change notification settings - Fork 648
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
Generate semantic convention constants/classes #1022
Comments
@aabmass Are you still looking into this? I can take a stab at this. I think this really helps in making instrumentations to follow semantic conventions. |
All yours |
@aabmass Where do you think these generated files should go? I can think of two options 1)Part of api(span attribute semantic conventions)/sdk(resource semconv) With this approach anybody taking dependency api/sdk can use Otel semantic conventions 2)Separate package in contrib repo |
Part of #932
open-telemetry/build-tools#5 and open-telemetry/opentelemetry-specification#571 introduce a tool that feeds semantic conventions (yaml files in spec repo) into a Jinja template to generate code. It would great if we could use this to generate constants for e.g. resource semantic conventions.
They have already used this in OT java to generate some things like https://github.com/heyams/opentelemetry-java/blob/master/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java
Not needed for GA I don't think, but nice to have
The text was updated successfully, but these errors were encountered: