Skip to content

feat: add GitHub API invocation and rate limit metrics #22961

@reggie-k

Description

@reggie-k

Summary

There are cases when the GitHub API rate limit is hit by Application Sets PR generator and scm-provider generator. It would be useful to have metrics and debug logs around GitHub API invocation and the rate limit info provided by GitHub API:
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#checking-the-status-of-your-rate-limit

Motivation

It would make easier to troubleshoot hitting the GitHub API rate limit.

Proposal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions