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

[chore] reuse struct when parsing to avoid recursive parsing #31727

Merged
merged 3 commits into from Mar 27, 2024

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Mar 13, 2024

Description:
This is a companion PR to handle recursive state of unmarshalers with open-telemetry/opentelemetry-collector#9750. Changing this behavior will allow the confmap.Conf object to recognize that it has already run the Unmarshal method on the struct, and run the mapstructure decoding of fields.

@atoulme
Copy link
Contributor Author

atoulme commented Mar 21, 2024

This is good to go now - the PR will accommodate to the deprecation of the component.UnmarshalConfig function.

@mx-psi mx-psi merged commit b6868b1 into open-telemetry:main Mar 27, 2024
142 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants