[Feature][ActiveDispatch] RequestId Middleware: Allow configuration of header name

6 views
Skip to first unread message

Stefan Selent

unread,
Nov 24, 2019, 11:04:40 PM11/24/19
to Ruby on Rails: Core
Hi,

Currently, the RequestId middleware assumes that the request's ID is delivered in the `X-Request-Id` HTTP header. The value is hardcoded (see here). However, in our usecase, a different header name is used that we have no control over. So, it seems useful to be able to configure the header name to support environments that use other conventions for propagating a request ID.

Does this sound like a useful enhancement? Any opinions?
Reply all
Reply to author
Forward
0 new messages