Skip to content

Context propagation #102

@blagoySimandov

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 ?

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