Skip to content

Count the actual number of http requests to NetBox instead of retried requests #13

@d-honeybadger

Description

@d-honeybadger

Since http requests to NetBox use an http client with retries, the actual number of http requests can be bigger than the number of client.Do() invocations. This is relevant for

  • rate-limiting
  • metrics collection

Instead of on every httpClient.Do(), waiting (for rate-limiting) and incrementing total number of requests should happen in RequestLogHook.

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