diff --git a/review-enrichment/src/server.ts b/review-enrichment/src/server.ts index 3a4efac245..a8929636cc 100644 --- a/review-enrichment/src/server.ts +++ b/review-enrichment/src/server.ts @@ -95,7 +95,7 @@ app.post("/v1/enrich", async (c) => { } const brief = await buildBrief(parsed.payload, undefined, { - requestId: c.req.header("x-gittensory-request-id") ?? c.req.header("x-request-id"), + requestId: c.req.header("x-loopover-request-id") ?? c.req.header("x-request-id"), traceId: traceIdFromTraceparent(c.req.header("traceparent")), }); recordEnrichOutcome("ok", startedAtMs); diff --git a/src/review/enrichment-wire.ts b/src/review/enrichment-wire.ts index a985e1e750..59d04b4230 100644 --- a/src/review/enrichment-wire.ts +++ b/src/review/enrichment-wire.ts @@ -450,7 +450,7 @@ export async function buildReviewEnrichment( "user-agent": "loopover-selfhost/1.0", accept: "application/json", "content-type": "application/json", - "x-gittensory-request-id": requestId, + "x-loopover-request-id": requestId, ...(sharedSecret ? { authorization: `Bearer ${sharedSecret}` } : {}), }, body: JSON.stringify({ diff --git a/test/unit/enrichment-wire.test.ts b/test/unit/enrichment-wire.test.ts index f9ad13148e..d1b5178daa 100644 --- a/test/unit/enrichment-wire.test.ts +++ b/test/unit/enrichment-wire.test.ts @@ -248,7 +248,7 @@ describe("buildReviewEnrichment", () => { (calls[0]!.init.headers as Record)["user-agent"], ).toBe("loopover-selfhost/1.0"); expect( - (calls[0]!.init.headers as Record)["x-gittensory-request-id"], + (calls[0]!.init.headers as Record)["x-loopover-request-id"], ).toMatch(/^[-0-9a-fA-Fa-z]+$/); expect((calls[0]!.init.headers as Record).accept).toBe( "application/json",