Skip to content

Context propagation #102

Description

@blagoySimandov

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions