The request_id passing was moved to Rails middleware as part of #17830.
authorWard Vandewege <ward@curii.com>
Tue, 28 Sep 2021 18:25:42 +0000 (14:25 -0400)
committerWard Vandewege <ward@curii.com>
Tue, 28 Sep 2021 18:25:42 +0000 (14:25 -0400)
Unfortunately, in that process the logging of the request_id parameter
in the rails logs was broken. This commit fixes that.

refs #17830

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

services/api/app/controllers/application_controller.rb

index ff4cb88aec5a5ded76376f3d1a26b6b926bb5f7c..3750befb3fed3c1131120a79534a105fbe062ed0 100644 (file)
@@ -427,7 +427,7 @@ class ApplicationController < ActionController::Base
 
   def append_info_to_payload(payload)
     super
-    payload[:request_id] = response.headers['X-Request-Id']
+    payload[:request_id] = request.request_id
     payload[:client_ipaddr] = @remote_ip
     payload[:client_auth] = current_api_client_authorization.andand.uuid || nil
   end