Tutorial by Examples

Reverse proxies can detect if a client provides a X-Request-ID header, and pass it on to the backend server. If no such header is provided, it can provide a random value. map $http_x_request_id $reqid { default $http_x_request_id; ...
Heroku will always pass on a X-Request-ID header send by the client, or generate its own. See documentation at HTTP Request IDs.
When using Django as a web service framework, the package django-log-request-id can be used to parse and log request IDs. Settings MIDDLEWARE_CLASSES = ( 'log_request_id.middleware.RequestIDMiddleware', # ... other middleware goes here ) LOGGING = { 'version': 1, 'disable_e...
The same X-Request-ID header can be sent by a client in a request, or by a server in a response. X-Request-ID: f9ed4675f1c53513c61a3b3b4e25b4c0 The value does not carry any inherent meaning, but is just a token to identify correlating requests and responses.

Page 1 of 1