Skip to content

Commit e21f3c3

Browse files
committed
Replace header x-gu-xid with x-request-id
x-request-id is a standard header name for request tracing
1 parent ee2c9df commit e21f3c3

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)