Skip to content

Commit 07a09b1

Browse files
authored
Merge pull request #15256 from guardian/use-header-x-request-id
Replace header `x-gu-xid` with `x-request-id`
2 parents d2a092a + e21f3c3 commit 07a09b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotcom-rendering/src/server/lib/logging-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const hasConfig = (body: unknown): body is { config: ConfigType } => {
2727
*/
2828
export const requestLoggerMiddleware: RequestHandler = (req, res, next) => {
2929
const start = process.hrtime.bigint();
30-
const headerValue = req.headers['x-gu-xid'];
30+
const headerValue = req.headers['x-request-id'];
3131
const requestId = Array.isArray(headerValue) ? headerValue[0] : headerValue;
3232
const loggerState = {
3333
request: {

0 commit comments

Comments
 (0)