-
Notifications
You must be signed in to change notification settings - Fork 708
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
Use structured logs (log.InfoS(...)
)
#4193
Comments
This would be great! |
Hi, I'm interested in working on this. Couple of questions:
|
Excellent, thanks @kristinjeanna !
Yes (some exceptions below). You may even find places where klog isn't yet used, switching is fine.
Some services are being deprecated, so could be skipped. The two I can think of are If you can break up the PRs by service, that'd make it trivial to review (or if the changes are small, no problem to join them or do it all in one PR, just mean if it results in a large change - but don't think it will be huge).
Most of the recommendations in there seem sensible (ie. why not clean up the message formatting while there), so yes, please feel free to follow those recommendations. Thanks again! |
Hi @antgamdia Is someone still working on it. Or I can take a stab on it. |
No, unfortunately, we haven't had the bandwidth to work on this. It'd be great if you can! Thanks! |
Cool thanks @antgamdia 👍 |
Hey @antgamdia How do we recognize which services are being deprecated? Also How do we figure out which service is in which package in the code? |
Hi @akankshakumari393 , main services are under /cmd, there you'll find:
We have successfully removed I'd recommend starting with Besides, there are some common packages under /pkg. You can see the dependencies in this comment: #4847 (comment) Anyway, happy to assist in the Slack channel if you want! |
Hi @antgamdia, I have raised a PR that adds changes in |
As per the discussion in #4180 (comment)
and #3848 (comment), it would be nice if we moved to structured logs (more info here).
Specifically, it means:
log.InfoS(...)
in our log traces.--logging-format
to our deployments to let users customize the format; for instance, using json-The text was updated successfully, but these errors were encountered: