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][pkg/ottl] Apply more standards to RemoveXML converter #35463

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

djaglowski
Copy link
Member

This PR just applies a couple more standards that I've been following with the other XML converters. Namely:

  • Create the function via the factory to ensure the constructor validation is applied
  • Use xmlquery.QueryAll instead of the deprecated xmlquery.FindEach

@djaglowski djaglowski marked this pull request as ready for review September 27, 2024 15:24
@djaglowski djaglowski requested a review from a team as a code owner September 27, 2024 15:24
@djaglowski
Copy link
Member Author

I also added handling for empty xml docs to the shared parsing function.

@djaglowski djaglowski merged commit 3033832 into open-telemetry:main Sep 27, 2024
156 checks passed
@djaglowski djaglowski deleted the ottl-remove-xml-cleanup2 branch September 27, 2024 17:18
@github-actions github-actions bot added this to the next release milestone Sep 27, 2024
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…elemetry#35463)

This PR just applies a couple more standards that I've been following
with the other XML converters. Namely:
- Create the function via the factory to ensure the constructor
validation is applied
- Use `xmlquery.QueryAll` instead of the deprecated `xmlquery.FindEach`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants