Ignition icon indicating copy to clipboard operation
Ignition copied to clipboard

Add log-request middleware

Open kirrg001 opened this issue 9 years ago • 2 comments

Start with shared middlewares, which every project can use. Start with: log-request.js middleware.

kirrg001 avatar Oct 27 '16 10:10 kirrg001

@sebgie has suggested to not generate a new request id if a specific header already exists. Example: x-request-id https://devcenter.heroku.com/articles/http-request-id http://stackoverflow.com/questions/25433258/what-is-the-x-request-id-http-header

By this we can track a request through multiple stages.

kirrg001 avatar Nov 02 '16 17:11 kirrg001

Request ID header was directly added in Ghost for now (see https://github.com/TryGhost/Ghost/pull/9122). We can port this change over to here as soon as we source out the logging middleware.

kirrg001 avatar Oct 09 '17 13:10 kirrg001