-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Improve hubble exporter configuration error handling and logging #35069
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
Conversation
chancez
commented
Sep 27, 2024
c32c354
to
2d4e0b5
Compare
2d4e0b5
to
9c0ba61
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.
that looks great! thanks!
I'm noticing a few more possible issues, gonna iterate a bit and do a bit more manual testing as well. |
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.
ci-structure LGTM
I tested my additional changes. Mostly noticed it was possible the config could be unloaded before it validated the new config, the last commit fixes that. |
/test |
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.
Changes lgtm overall.
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
Add a source_label filter because a OSS user was reporting issues with filters containing slashes that I can't reproduce. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
filters.FilterFuncs is an interface and when being logged by logrus produces an error "Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: filters.FilterFunc". Fix this by storing the original flowpb.FlowFilters in the exporteroption.Option and store the filters.FilterFuncs as unexported fields that have accessor methods instead. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
…alid Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
d28d0cd
to
b740f3f
Compare
/test |