Project

General

Profile

Feature #25619

First line of a request transaction (Started GET...) does not contain request id

Added by Lukas Zapletal 10 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Logging
Target version:
-
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

This is due to ordering of middleware. We need to insert our logging MDC middleware before ::Rails::Rack::Logger via config.middleware.insert_before(existing_middleware, new_middleware, args) - see for more: https://guides.rubyonrails.org/rails_on_rack.html#configuring-middleware-stack

Associated revisions

Revision f1f369ab (diff)
Added by Lukas Zapletal 9 months ago

Fixes #25619 - refactor logging middleware

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6315 added

#2 Updated by Tomer Brisker 9 months ago

  • Fixed in Releases 1.21.0 added

#3 Updated by Lukas Zapletal 9 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF