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

Context propagation #102

Open
blagoySimandov opened this issue Jul 24, 2024 · 0 comments
Open

Context propagation #102

blagoySimandov opened this issue Jul 24, 2024 · 0 comments

Comments

@blagoySimandov
Copy link

I've noticed while using the go-bigip package that context is not passed through requests. There are several benefits to passing Go context, especially in the case of an SDK:

Request Cancellation & Contextual Data Propagation:

  • Context can carry deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes, handling timeouts and preventing unnecessary resource usage.

Improved Error Handling:

  • With context, errors can be propagated more effectively, ensuring that upstream systems can handle them appropriately.

Is there a particular reason why context is not used in the package ?

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

No branches or pull requests

1 participant