This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
XF\Error::getRequestDataForExceptionLog should pass $e as part of its parameters, since headers like X-Request-ID are common (albeit non-standard) ways of correlating logged errors with back-end requests.