Open
Description
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