1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Provide the whole request

This commit is contained in:
George Claghorn 2019-11-04 18:29:38 -05:00
parent 86dd7d1621
commit 32b99f9358
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
* `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)
* `:request` - the `ActionDispatch::Request`
* `:location` - the `Location` response header
*George Claghorn*

View file

@ -25,7 +25,7 @@ module ActionController
format: request.format.ref,
method: request.request_method,
path: request.fullpath,
uuid: request.uuid
request: request
}
ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload)

View file

@ -140,7 +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) |
| `:request` | The `ActionDispatch::Request` |
| `:status` | HTTP status code |
| `:location` | Location response header |
| `:view_runtime` | Amount spent in view in ms |
@ -155,6 +155,7 @@ Action Controller
format: :html,
method: "GET",
path: "/posts",
request: #<ActionDispatch::Request:0x00007ff1cb9bd7b8>,
status: 200,
view_runtime: 46.848,
db_runtime: 0.157