Skip to content

Commit

Permalink
fix feature gate names
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed Nov 29, 2024
1 parent 45073a1 commit 624a9be
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/non-normative/k8s-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ updated to the stable K8s semantic conventions, they:
Specifically for the Opentelemetry Collector:

The transition will happen through two different feature gates.
One for enabling the new schema called `semconv.k8s.stable`,
and one for disabling the old schema called `semconv.k8s.legacy`. Then:

- On alpha the old schema is enabled, while the new schema is disabled
- On beta/stable the old schema is disabled, while the new is enabled
- It is an error to disable both
One for enabling the new schema called `semconv.k8s.enableStable`,
and one for disabling the old schema called `semconv.k8s.disableLegacy`. Then:

- On alpha the old schema is enabled by default (`semconv.k8s.disableLegacy` defaults to false),
while the new schema is disabled (`semconv.k8s.enableStable` defaults to false).
- On beta/stable the old schema is disabled by default (`semconv.k8s.disableLegacy` defaults to true),
while the new is enabled by default (`semconv.k8s.enableStable` defaults to true).
- It is an error to disable both schemas
- Both schemas can enabled with `--feature-gates=-semconv.disableLegacy,+semconv.k8s.enableStable`.

<!-- toc -->

Expand Down

0 comments on commit 624a9be

Please sign in to comment.