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
contextual logging #3077
Comments
/sig instrumentation |
Hello @pohly v1.24 Enhancements team here. Just checking in as we approach enhancements freeze on 18:00pm PT on Thursday Feb 3rd, 2022. This enhancement is targeting Here’s where this enhancement currently stands:
The status of this enhancement is marked as |
@encodeflush : the KEP PR was merged, all criteria for alpha in 1.24 should be met now. |
Hi @pohly 👋 1.24 Docs shadow here. This enhancement is marked as 'Needs Docs' for the 1.24 release. Please follow the steps detailed in the documentation to open a PR against the dev-1.24 branch in the k/website repo. This PR can be just a placeholder at this time and must be created before Thu March 31, 11:59 PM PDT. Also, if needed take a look at Documenting for a release to familiarize yourself with the docs requirement for the release. Thanks! |
Hi @pohly 👋 1.24 Release Comms team here. We have an opt-in process for the feature blog delivery. If you would like to publish a feature blog for this issue in this cycle, then please opt in on this tracking sheet. The deadline for submissions and the feature blog freeze is scheduled for 01:00 UTC Wednesday 23rd March 2022 / 18:00 PDT Tuesday 22nd March 2022. Other important dates for delivery and review are listed here: https://github.com/kubernetes/sig-release/tree/master/releases/release-1.24#timeline. For reference, here is the blog for 1.23. Please feel free to reach out any time to me or on the #release-comms channel with questions or comments. Thanks! |
Hello @pohly I'm just checking in once more as we approach the 1.24 Code Freeze on 18:00 PDT, Tuesday, March 29th 2022 Please ensure the following items are completed:
For note, the status of this enhancement is currently marked as Thank you! |
/assign |
I have added two doc PRs to the description. |
/milestone clear |
@pohly can we close this? |
/assign @serathius |
KCM / CCM controller aliases should help with consistent component names (eventually once we do the wiring) |
I would really like to work on the component |
Can you also do pkg/controller/endpoint, pkg/controller/garbagecollector, pkg/controller/nodeipam, pkg/controller/replicaset, pkg/controller/statefulset, pkg/controller/util, pkg/controller/volume? That can be a single cleanup PR because those components were already converted earlier. |
@pohly, will be happy to work on those as well :) |
@gurpreet-legend: I added you to the table. It looks like pkg/controller/endpoint hasn't been touched at all yet. Then do that in one PR and the cleanup changes in another. |
I am really interested in working on |
I would like to work on this component: |
I would really like to work on this component |
Sure, will work on that first and then will work on the other components :) |
Enhancement Description
One-line enhancement description (can be used as a release note): Contextual logging enables the caller of a function to control all aspects of logging (output formatting, verbosity, additional values and names).
Kubernetes Enhancement Proposal: https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/3077-contextual-logging
Discussion Link: WG Structured Logging
Primary contact (assignee): @pohly
Responsible SIGs: SIG Instrumentation, WG Structured Logging
Enhancement target (which target equals to which milestone):
Alpha
k/enhancements
) update PR(s):k/k
) update PR(s):k/website
) update PR(s):Beta
k/enhancements
) update PR(s): KEP-3077: contextual logging: promotion to beta in 1.30 #4219k/k
) update PR(s):k/website
) update(s):Current configuration
https://github.com/kubernetes/kubernetes/blob/master/hack/logcheck.conf
Status
The following table counts log calls that need to be converted. The numbers for contextual logging include those for structured logging.
At this point, controllers could get converted to contextual logging or one of the components that was already converted to structured logging. If you want to pick one, ping @pohly on the #wg-structured-logging Slack channel. See structured and contextual logging migration instructions for guidance.
Besides migrating log calls, we also might have to migrate from APIs which don't support contextual logging to APIs which do:
From 2022-10-27 ~= Kubernetes 1.26
The focus was on converting kube-controller-manager. Of 1944 unstructured and/or non-contexual logging calls in
pkg/controller
andcmd/kube-controller-manager
, 82% were converted to structured, contextual logging in Kubernetes 1.27.From 2023-03-17 = Kubernetes v1.27.0-beta.0
All of kube-controller-manager got converted.
Tables created with:
@obaranov1, kubernetes/kubernetes#116021, @mengjiao-liu, kubernetes/kubernetes#119147@pravarag, kubernetes/kubernetes#114689, @pohly, kubernetes/kubernetes#119250From 2023-09-18 =~ Kubernetes v1.28
Table created manually and with:
From 2023-11-20 =~ Kubernetes v1.29
Table created with:
The text was updated successfully, but these errors were encountered: