Project

General

Profile

Actions

Feature #15863

closed

Log request IDs (tagged logging) in production.log

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Logging
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Request IDs can be added to Foreman's logs to make it easier to trace all log messages relating to a particular request when they interleave from multiple server processes.

Rails stores an ID in the request environment by default, and since Rails 5, the default configuration is to log it. The request ID is derived from the X-Request-ID header, otherwise a random UUID. Since Foreman uses the logging gem without tagging support instead of the default Rails logger, implementing this requires passing the extra information to its MDC/NDC (context) storage.


Related issues 3 (0 open3 closed)

Related to Foreman - Feature #15876: Send request and session ids to foreman-proxy as HTTP headersDuplicate07/28/2016Actions
Related to Foreman - Feature #10982: Add logging to smart proxy requests (ProxyAPI)ClosedDominic Cleal07/02/2015Actions
Related to Foreman - Bug #19017: Use request id instead of session id of tagged loggingClosedIvan Necas03/24/2017Actions
Actions #1

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3678 added
Actions #2

Updated by Dominic Cleal over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Lukas Zapletal over 8 years ago

  • Related to Feature #15876: Send request and session ids to foreman-proxy as HTTP headers added
Actions #4

Updated by Dominic Cleal over 8 years ago

  • Related to Feature #10982: Add logging to smart proxy requests (ProxyAPI) added
Actions #5

Updated by Dominic Cleal over 8 years ago

  • Translation missing: en.field_release set to 160
Actions #6

Updated by Ivan Necas over 7 years ago

  • Bugzilla link set to 1435563
Actions #7

Updated by Ivan Necas over 7 years ago

  • Related to Bug #19017: Use request id instead of session id of tagged logging added
Actions

Also available in: Atom PDF