Skip to content

Commit

Permalink
Use oip.Context() in dispatcher to enable trace threading (later). (#…
Browse files Browse the repository at this point in the history
…555)

I realized this wasn't properly threaded when opening:
#554
spelling out how to save/restore trace headers.

Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor authored Sep 16, 2024
1 parent c79371c commit c33ed00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workqueue/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func HandleAsync(ctx context.Context, wq workqueue.Interface, concurrency int, f
}

// Attempt to perform the actual reconciler invocation.
if err := f(ctx, oip.Name()); err != nil {
if err := f(oip.Context(), oip.Name()); err != nil {
clog.WarnContextf(ctx, "Failed callback for key %q: %v", oip.Name(), err)

// Requeue if it fails (stops heartbeat).
Expand Down

0 comments on commit c33ed00

Please sign in to comment.