Skip to content

[mdatagen] - Add auto-generated tests to verify that the config structure is marshallable #12906

Open
@VihasMakwana

Description

@VihasMakwana

Component(s)

cmd/mdatagen

Describe the issue you're reporting

It was recently observed in open-telemetry/opentelemetry-collector-contrib#39474 that the collector panics while trying to marshal tcplog receiver's config to yaml. RCA can be found here

It would be helpful to add auto-generated tests that use CreateDefaultConfig() (or metadata.yaml) and check that the config can be marshalled to YAML/JSON without errors.

cc: @atoulme @tigrannajaryan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions