Skip to content

process_action.action_controller

View Markdown

A Rails controller action finished handling an HTTP request. Includes total duration, database time, view time, route details, and response status.

Source Action Controller Category Request Fields 14 honeybadger-ruby

Fields

14
FieldTypeDescription
event_typestringAllowed value: process_action.action_controller.
controllerstringController class name, e.g. "SearchController".
actionstringAction method on the controller, e.g. "index", "destroy".
methodstringHTTP method, e.g. "GET", "POST", "PUT".
pathstringRequest path, e.g. "/follows". Often high-cardinality due to ids.
formatstringResponse format, e.g. "html", "json".
statusintegerHTTP status code returned to the client.
durationnumberTotal wall-clock time the action took, in milliseconds. Includes db_runtime and view_runtime.
db_runtimenumberMilliseconds spent in DB queries during this action.
view_runtimenumberMilliseconds spent rendering views during this action.
request_idstringRails request UUID. Also appears on sql.active_record, render_*.action_view, and cache_*.active_support events from the same request.
instrumenter_idstringUnique identifier for the ActiveSupport::Notifications instrumentation request, assigned by Rails.
hostnamestringServer hostname. Attached to every event by default (events.attach_hostname).
environmentstringApplication environment, e.g. "production". Attached to every event by default (events.attach_environment).

Example

{
"event_type": "process_action.action_controller",
"controller": "UsersController",
"action": "show",
"method": "GET",
"path": "/users/123",
"format": "html",
"status": 200,
"duration": 145.2,
"db_runtime": 38.7,
"view_runtime": 52.4,
"request_id": "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01",
"instrumenter_id": "d6a5b3f4c2e1908a7b6c",
"hostname": "web-1.example.com",
"environment": "production"
}