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

chore: add more context #4925

Closed
wants to merge 1 commit into from
Closed

chore: add more context #4925

wants to merge 1 commit into from

Conversation

Benehiko
Copy link
Member

@Benehiko Benehiko commented Mar 7, 2024

This is a WIP and I might still reduce the places where we pass ctx to.

Follow up to #4774 and depends on moby/moby#47518

- What I did
Add more context to each function call.

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Alano Terblanche <[email protected]>
@Benehiko Benehiko self-assigned this Mar 8, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

todo: delete this file.

Comment on lines +30 to +37
otelShutdown, err := setupOTelSDK(ctx)
if err != nil {
return
}
// Handle shutdown properly so nothing leaks.
defer func() {
otelShutdown(context.Background())
}()
Copy link
Member Author

Choose a reason for hiding this comment

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

ignore this. accidental commit

@Benehiko
Copy link
Member Author

Closing this. A lot has changed here and if we see more ctx problems we can address them over time.

@Benehiko Benehiko closed this Apr 26, 2024
@Benehiko Benehiko deleted the cli-ctx branch April 26, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant