Skip to content
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

structured logging: switch from KObjs to KObjSlice #110737

Closed
4 tasks
pohly opened this issue Jun 23, 2022 · 10 comments · Fixed by #110747
Closed
4 tasks

structured logging: switch from KObjs to KObjSlice #110737

pohly opened this issue Jun 23, 2022 · 10 comments · Fixed by #110747
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. triage/accepted Indicates an issue or PR is ready to be actively worked on. wg/structured-logging Categorizes an issue or PR as relevant to WG Structured Logging.

Comments

@pohly
Copy link
Contributor

pohly commented Jun 23, 2022

What would you like to be added?

kubernetes/klog#322 added klog.KObjSlice as replacement for klog.KObjs. A version of klog with that is now in Kubernetes master.

We should:

/sig instrumentation
/wg structured-logging

Why is this needed?

klog.KObjSlice takes constant time when called to prepare the parameter, in contrast to klog.KObjs which is linear with the number of entries it needs to handle.

@pohly pohly added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 23, 2022
@k8s-ci-robot k8s-ci-robot added sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. wg/structured-logging Categorizes an issue or PR as relevant to WG Structured Logging. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 23, 2022
@pohly
Copy link
Contributor Author

pohly commented Jun 23, 2022

When preparing a PR which removes KObj, remember to include a meaningful "why this is needed" in the PR description itself, for example the one above. A link to this issue should be added for cross-reference, but that alone is not enough for reviewers because it makes them do extra work (look up an issue and read through all of it).

@harshanarayana
Copy link
Contributor

/assign

Can I take this one up ?

@pohly
Copy link
Contributor Author

pohly commented Jun 23, 2022

Yes, please do.

@yangjunmyfm192085
Copy link
Contributor

/assign
I can take one of these
Could we be together?@harshanarayana

@yangjunmyfm192085
Copy link
Contributor

I can work on this Search/replace calls to KObjs in all of Kubernetes.

@harshanarayana
Copy link
Contributor

harshanarayana commented Jun 23, 2022

Could we be together?

Certainly.

@yangjunmyfm192085 I just finished the first one and half way through the second. The other two I have not yet taken a look into. Mind taking one of those two ?

@yangjunmyfm192085
Copy link
Contributor

Let me update the third one. thanks a lot

@dgrisonnet
Copy link
Member

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 30, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 28, 2022
@harshanarayana
Copy link
Contributor

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. triage/accepted Indicates an issue or PR is ready to be actively worked on. wg/structured-logging Categorizes an issue or PR as relevant to WG Structured Logging.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants