提交 8ec75a14 编写于 作者: G George Claghorn

Add :uuid to process_action.action_controller payloads

上级 72225944
* `process_action.action_controller` notifications include the `Location`
response header under `:location` in their payloads.
* `process_action.action_controller` notifications now include the following in their payloads:
* `:uuid` - the request's globally-unique ID (the `X-Request-Id` response header by default)
* `:location` - the `Location` response header
*George Claghorn*
......
......@@ -24,7 +24,8 @@ def process_action(*)
headers: request.headers,
format: request.format.ref,
method: request.request_method,
path: request.fullpath
path: request.fullpath,
uuid: request.uuid
}
ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload)
......
......@@ -140,6 +140,7 @@ Action Controller
| `:format` | html/js/json/xml etc |
| `:method` | HTTP request verb |
| `:path` | Request path |
| `:uuid` | Globally-unique request ID (X-Request-Id response header) |
| `:status` | HTTP status code |
| `:location` | Location response header |
| `:view_runtime` | Amount spent in view in ms |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册