Skip to content

Tracking issue for configoptional.AddEnabledField feature gate #14021

@mx-psi

Description

@mx-psi

Feature gate name

configoptional.AddEnabledField

Description

Allows to configure any field using a configoptional.Optional with enabled. For example, the following configuration becomes valid:

receivers:
  otlp:
    protocols:
      grpc:
        enabled: true

exporters:
  nop:

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [nop]

and is equivalent to:

receivers:
  otlp:
    protocols:
      grpc:

exporters:
  nop:

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [nop]

which also remains a valid way of configuring this.

Issues blocking alpha to beta transition

  • Get usage testing for the use cases we currently have in mind:
    • confighttp keepalives,
    • confighttp Cookies section (PoC)
    • exportehelper batching from elasticsearchexporter and datadogexporter

Issues blocking beta to stable transition

  • Make sure that dependent products (e.g. OpenTelemetry Helm Chart) can work correctly after this change
  • Use configoptional for existing configuration sections that have an enabled field

History

Version Status PR
v1.45.0/v0.139.0 Introduced at alpha level #13995
v1.46.0/v0.140.0 Promoted to beta level #14136

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions