Skip to content

Comments

Use context.WithoutCancel instead of context.Background#8635

Merged
beautifulentropy merged 4 commits intomainfrom
contextcheck
Feb 23, 2026
Merged

Use context.WithoutCancel instead of context.Background#8635
beautifulentropy merged 4 commits intomainfrom
contextcheck

Conversation

@aarongable
Copy link
Contributor

@aarongable aarongable commented Feb 20, 2026

I found a few places where we were using context.Background(), but actually had a perfectly good parent context to inherit from available. Fix those to better match best practices, and propagate the parent context's other metadata deeper into the call stack.

@aarongable aarongable marked this pull request as ready for review February 20, 2026 23:35
@aarongable aarongable requested a review from a team as a code owner February 20, 2026 23:35
@aarongable aarongable requested a review from jsha February 20, 2026 23:35
@beautifulentropy beautifulentropy merged commit 6b1c7b7 into main Feb 23, 2026
28 checks passed
@beautifulentropy beautifulentropy deleted the contextcheck branch February 23, 2026 21:41
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.

3 participants