Skip to content

[mdatagen] Define featuregates in metadata.yaml #9860

Open
@dmitryax

Description

@dmitryax

We can define feature gates in the metadata.yaml and generate code + documentation from it. We can use the following YAML structure with a docker stats feature gate as an example:

feature_gates:
  - id: receiver.dockerstats.useScraperV2
    description: |
      When enabled, the receiver will use the function ScrapeV2 to collect metrics. 
      This allows each metric to be turned off/on via config. 
      The new metrics are slightly different to the legacy implementation.
    from_version: 0.60.0
    to_version: 0.74.0
    stage: stable
    reference_url: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/9794

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions