Comments (8)
@thisthat Filed an issue for it :)
from build-tools.
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.
from build-tools.
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 has_tag
method around here?
from build-tools.
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.
from build-tools.
Given the special use case of this "tag", I would suggest adding it as its own field in the YAML definition.
from build-tools.
Discussing this with @Oberon00, we come up with changing the deprecated
attribute to stability: deprecated|experimental|stable
, where stable
is the default one.
WDYT @anuraaga?
from build-tools.
Sounds good, thanks!
from build-tools.
Hmm, on the other hand, maybe we should keep deprecated
separate after all. If we deprecate an attribute that was never stable, it would be different from deprecating a formerly stable attribute. Except if we say we have a strict policy of immediately removing experimental attributes worth deprecating. But given the wide use of our "experimental" semantic conventions, I'm not sure that works.
from build-tools.
Related Issues (20)
- Allow sharing/inheriting notes/brief from overriden ref attributes HOT 2
- Fix default stability level HOT 1
- Allow updating enum values when referencing attribute HOT 9
- Improve documentation of code generator HOT 4
- Change maintainers to be @open-telemetry/specs-semconv-maintainers HOT 3
- Add new entity to the YAML model for "stand alone" attributes HOT 2
- Generating code from metric semconv
- Add anchors to individual attributes in a markdown table
- [security] audit repository tooling HOT 6
- Add footnote/reference to list of enum values
- Add readme and repository url to DockerHub HOT 4
- Provide a way to define and generate full example tables as part of the model
- Add list of maintainers to README.md HOT 1
- Give Maintain permissions to specs-semconv-maintainers so they can merge PRs and publish releases HOT 3
- Consider using proper type annotations
- Add `embed` concept for attributes reuse (in addition to `ref`) HOT 3
- Need a soonish fix for current usage of code generation HOT 9
- Add the semconvgen Library to PyPi (semantic-conventions package) HOT 3
- Add `stability` property to semconv.schema.json HOT 2
- Render requirement level column on metrics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-tools.