-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add sloglint and fix issues #37851
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
Add sloglint and fix issues #37851
Conversation
/test |
90b6868
to
d9d4c19
Compare
/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.
Thanks! Feel free to disregard the suggestions if out of scope.
d9d4c19
to
4486639
Compare
/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.
Hubble changes lgtm
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.
@aanm Great addition. Thank you Andre!
Add sloglint with some rules so that we have consistency across the code base for the slog usage. Signed-off-by: André Martins <andre@cilium.io>
The presence of slog's BADKEY typically means that the provided key for a log attribute is invalid, thus we should detect this string in the logs during our CI. Signed-off-by: André Martins <andre@cilium.io>
4486639
to
1c9728e
Compare
/test |
Fix all of the issues found by sloglint in our code base. Signed-off-by: André Martins <andre@cilium.io>
1c9728e
to
783670f
Compare
/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.
LGTM for service mesh related files 👍
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 - I guess we could bikeshed forever on what options to enable/disable 😅
See per commit basis