Skip to content

[configoptional] Implement Validate()? #13579

@jmacd

Description

@jmacd

Component(s)

No response

Describe the issue you're reporting

The existing code base uses reflection to recursively apply Validate() to nested configuration objects.
This breaks when configoptional is used, e.g., for QueueConfig/BatchConfig in exporterhelper, see e.g., this fix: open-telemetry/opentelemetry-collector-contrib#41830
I believe this is possibly something we should address.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions