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

Add logging to help debug queueing problems #965

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Apr 15, 2021

This adds logs for information about which queue is
being used / invoked. Previously this information was
in traces.

Signed-off-by: Sargun Dhillon sargun@sargun.me

This adds *logs* for information about which queue is
being used / invoked. Previously this information was
in traces.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
@sargun sargun requested a review from cpuguy83 April 15, 2021 23:27
@@ -376,6 +377,7 @@ func (q *Queue) handleQueueItem(ctx context.Context) bool {
// We do this as the delayed nature of the work Queue means the items in the informer cache may actually be more u
// to date that when the item was initially put onto the workqueue.
ctx = span.WithField(ctx, "key", qi.key)
ctx = log.WithLogger(ctx, log.G(ctx).WithField("key", qi.key))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the logger already have this key? If not that seems like a bug in the span implementation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants