-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[pkg/ottl]: Add ParseCSV converter #31081
[pkg/ottl]: Add ParseCSV converter #31081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar enough with ottl code standards to approve this but it looks good to me from the perspective of matching csv parsing functionality in pkg/stanza.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this. Overall looks good to me, just a few minor questions/notes.
39912b0
to
4c92b71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me. If possible it would be nice to share parsing functionality between OTTL and Stanza, but if that's going to pose a significant challenge we can tackle it in a follow-up.
@evan-bradley @TylerHelmuth I've factored out the duplicate code between stanza and ottl into coreinternals, should be good for another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but please add at least me as owner on a new line in .github/CODEOWNERS
.
I added a new line for parseutils and put you as codeowner, it's not clear to me if that's OK to do (I know this repo has special tooling, and most lines in the codeowners file are modules and not packages), so let me know if I should be doing something different with that. |
@djaglowski we are already code owners of |
I guess it's enough though I am particularly invested in ensuring stability of this code. I forgot it's a generated file at this point anyways so we can just leave it alone. |
@djaglowski maybe a future reorganization from |
1d89b65
to
481f577
Compare
@evan-bradley Rebased and checks are passing now! |
**Description:** <Describe what has changed.> * Follow up to #31081 to refactor using shared code between Stanza and OTTL for parsing CSV. **Testing:** * Existing unit tests cover this refactor
**Description:** * Adds a new ParseCSV converter that can parse CSV row strings. **Link to tracking Issue:** Closes open-telemetry#30921 **Testing:** * Unit tests * Manually tested the examples with a local build of the collector **Documentation:** * Adds documentation for using the ParseCSV converter.
…emetry#31302) **Description:** <Describe what has changed.> * Follow up to open-telemetry#31081 to refactor using shared code between Stanza and OTTL for parsing CSV. **Testing:** * Existing unit tests cover this refactor
Description:
Link to tracking Issue: Closes #30921
Testing:
Documentation: