Skip to content

Add: HTTP Request ID Middleware#63

Merged
guacamole merged 1 commit intomasterfrom
http-request-id-middleware
Nov 19, 2021
Merged

Add: HTTP Request ID Middleware#63
guacamole merged 1 commit intomasterfrom
http-request-id-middleware

Conversation

@jay-dee7
Copy link
Member

Adds http request id in logs and response headers

Signed-off-by: jay-dee7 [email protected]

@jay-dee7 jay-dee7 requested a review from guacamole November 19, 2021 06:48
@jay-dee7 jay-dee7 self-assigned this Nov 19, 2021
telemetry/log.go Outdated
}

logFmt := `{"time":"${time_rfc3339}","request_id":"${request_id}","remote_ip":"${remote_ip}",` +
logFmt := `{"time":"${time_rfc3339}","x-request-id":"${request_id}","remote_ip":"${remote_ip}",` +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jay-dee7 , could you make it '_' instead of '-' since everything else is underscored

@jay-dee7 jay-dee7 force-pushed the http-request-id-middleware branch from 0ff5b69 to c52b23d Compare November 19, 2021 06:52
Adds http request id in logs and response headers

Signed-off-by: jay-dee7 <[email protected]>
@jay-dee7 jay-dee7 force-pushed the http-request-id-middleware branch from c52b23d to f3fdd67 Compare November 19, 2021 06:53
Copy link
Member

@guacamole guacamole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇

@guacamole guacamole merged commit ba61e41 into master Nov 19, 2021
@guacamole guacamole deleted the http-request-id-middleware branch November 19, 2021 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants