Skip to content

Include Connectors when using Cfgmetadatagen #26990

Closed
@BTripp1986

Description

@BTripp1986

Component(s)

cmd/configschema

Is your feature request related to a problem? Please describe.

As part of a tool have built I use the cfgmetadatagen to generate metadata for the component configs but it does not generate metadata for connectors. Most connectors don't require any additional config, but the countconnector and spanmetricsconnector do require additional config.

Describe the solution you'd like

I would like connectors to be included when generating metadata with the cfgmetadatagen.

Describe alternatives you've considered

I am currently using regex to parse the source files, a solution I was using for all components until I discovered the cfgmetadatagen. I am now refactoring my app to use cfgmetadatagen, but it would be great to have a consistent format from which to get config fields and default values.

Additional context

It seems that this would be a fairly trivial addition, but I could be wrong. I am a Go novice so I could potentially create a PR for this, but if this is deemed a valid feature request it would be great if someone more competent with Go could add the feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions