-
Notifications
You must be signed in to change notification settings - Fork 55
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 convention marker: stability #35
Comments
@thisthat Filed an issue for it :) |
Can the tag-mechanism be extended for that? E.g. if we allow multiple tags, we can just designate certain tags (stable, experimental?) for that use case. |
TBH despite me maintaining this repo, I haven't looked into the details on how the Java generator works :P If the attributes processed by that template can be filtered by tag, then that would work fine I think. I guess it might still need a change, adding build-tools/semantic-conventions/src/opentelemetry/semconv/model/semantic_attribute.py Line 87 in b4f8bdd
|
The generator would need to be updated anyway, as currently it allows only a single tag. has_tag might be useful too, although Jinja is basically a fully-fledged Python dialect and probably already has a contains method or "in" operator you could call on any exposed list attribute. Maybe special support for stability declarations is warranted though. We could then e.g. declare a full group as stable and only mark certain attributes as experimental or vice-versa. Tags are not (yet) supported for groups. |
Given the special use case of this "tag", I would suggest adding it as its own field in the YAML definition. |
Sounds good, thanks! |
Hmm, on the other hand, maybe we should keep |
From open-telemetry/opentelemetry-specification#1497 (comment) there are cases we may want to stabilize a subset of attributes in a given category. It would be nice if we can just mark attributes as stable so the generator handles this for us. This is less important for MD generation and more for code, where stable attributes will need to be rendered differently (different packages for example).
The text was updated successfully, but these errors were encountered: