Skip to content

Commit

Permalink
log x-github-request-id in torngit github (#390)
Browse files Browse the repository at this point in the history
we saw a strange request recently that returned a 200 but was unexpectedly missing all the rate limit headers and it took 5 seconds. seems like something might have been up with it, but we had no way to ask GH support to take a look
  • Loading branch information
matt-codecov authored Oct 16, 2024
1 parent 3cac029 commit 6652bae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/torngit/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ async def make_http_call(
rl_limit=res.headers.get("X-RateLimit-Limit"),
rl_reset_time=res.headers.get("X-RateLimit-Reset"),
retry_after=res.headers.get("Retry-After"),
gh_request_id=res.headers.get("x-github-request-id"),
**log_dict,
),
)
Expand Down

0 comments on commit 6652bae

Please sign in to comment.