opentelemetry-collector
opentelemetry-collector copied to clipboard
[mdatagen] Consider updating metrics `stability` field to match Weaver
Problem
Currently, we define stability as a group that typically includes only the level field. The only additional field used is since, which applies to the deprecated stability level.
Comparison with Weaver
In Weaver V2, deprecation is modeled differently: the stability group no longer includes a deprecated level. Instead, deprecation is represented in a separate group called deprecated, making the stability field structure simpler and flatter.
Proposal
Adopt this approach in metadata.yaml
Future Work
We should make similar updates to other parts of the metadata.yaml schema to align more closely with Weaver. Eventually, this will allow a full migration to the Weaver model.
Pinging code owners for cmd/mdatagen: @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triage' to set the priority and remove the needs-triage label.