in cloudflare_exporter.go [276:285]
func (e *exporter) makeGraphqlRequest(ctx context.Context, logger log.Logger, req *graphql.Request, resp interface{}) error {
req.Header.Set("X-AUTH-EMAIL", e.email)
req.Header.Set("X-AUTH-KEY", e.apiKey)
req.Var("limit", apiMaxLimit)
duration, err := timeOperation(func() error {
return e.graphqlClient.Run(ctx, req, &resp)
})
level.Debug(logger).Log("duration", duration.Seconds(), "msg", "finished request")
return err
}