Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry Config Marshaler #5418

Closed
jefchien opened this issue May 25, 2022 · 3 comments
Closed

OpenTelemetry Config Marshaler #5418

jefchien opened this issue May 25, 2022 · 3 comments

Comments

@jefchien
Copy link
Contributor

Is your feature request related to a problem? Please describe.
New projects transitioning to OpenTelemetry need a way to translate their existing configs to the expected OpenTelemetry format. This can be done programmatically by unmarshaling the existing config and mapping it to the OpenTelemetry config struct. Currently, there isn't an easy way to marshal the OpenTelemetry config struct.

Describe the solution you'd like
A config marshaler provided by the OpenTelemetry collector core would go a long way in being able to easily and confidently marshal the config struct into YAML, which can then be written out to a file and used moving forward.

Describe alternatives you've considered
I've written my own generic mapstructure encoder to use with a marshaler, but as I've learned, it does not support configs with custom unmarshal/marshal.

Additional context
This could also be used in an example provided by @bogdandrutu where it might be useful for users to be able to see what config the collector is actually using during run time. The marshaler would be able to provide YAML that can be written out to an endpoint for the user to see.

@jefchien
Copy link
Contributor Author

#800 is a similar issue.

@jefchien
Copy link
Contributor Author

Please assign this issue to me.

@dmitryax
Copy link
Member

Closing as completed in #5566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants