In the client exec function line 465: https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/client/client.go#L465 the req.WithContext returns a new Request object with the context, instead of editing the Request object. This returned object needs to be assigned back to the request object of the client.