Project

General

Profile

Actions

Feature #25619

closed

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

Added by Lukas Zapletal about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Logging
Target version:
-
Difficulty:
trivial
Triaged:
Yes
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

Actions

Also available in: Atom PDF