Skip to content

Conversation

@jippi
Copy link
Owner

@jippi jippi commented Feb 19, 2019

Rationale

Today it's pretty hard to debug everything that was being logged for a specific HTTP request since there is no stable value you can query on from the first HTTP request until the end.

This PR introduces a request_id which will be stable for the duration of the request, and due to its UUIDv4 value, will be globally unique (or close to it) for the lifetime of the service.

The request ID will always be returned in a proxied response (X-Request-ID), which should make it much easier to correlate request and actions done.

The value will also be logged as request_id in any logs from the request.

The value will not be emitted via telemetry as the cardinality of the field would be mostly useless

Signed-off-by: Christian Winther jippignu@gmail.com

Signed-off-by: Christian Winther <jippignu@gmail.com>
Signed-off-by: Christian Winther <jippignu@gmail.com>
Signed-off-by: Christian Winther <jippignu@gmail.com>
@jippi jippi self-assigned this Feb 19, 2019
Signed-off-by: Christian Winther <jippignu@gmail.com>
Signed-off-by: Christian Winther <jippignu@gmail.com>
@jippi jippi merged commit 40eb061 into master Feb 19, 2019
@jippi jippi deleted the ensure-consistent-request-uuid branch February 19, 2019 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants