From 6652baed9d4b30858bac80d310c67ba9164635c8 Mon Sep 17 00:00:00 2001 From: matt-codecov <137832199+matt-codecov@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:09:07 -0700 Subject: [PATCH] log `x-github-request-id` in torngit github (#390) 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 --- shared/torngit/github.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/torngit/github.py b/shared/torngit/github.py index a423fc9a..c9e5622b 100644 --- a/shared/torngit/github.py +++ b/shared/torngit/github.py @@ -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, ), )