concepts / log-json-schema / events / controller-call-event

Log Event JSON Schema - event.controller_call

Note: Our libraries integrate with frameworks and libraries to log this event automatically.

The controller_call event represents an invocation of your controller within the HTTP request cycle. The order of events generally looks like:

Started Get "/"
Processing by WelcomeController#index as html <-------------------------
Rendered welcome/index.html.erb within layouts/application (0.2ms)
Completed 200 OK in 2.46ms

Example JSON Structure

Go from this:

Processing by WelcomeController#index as html

To this

1
2
3
4
5
6
7
8
9
10
{
  "message": "Processing by WelcomeController#index as html",
  "event": {
    "controller_call": {
      "controller": "WelcomeController",
      "action": "index",
      "params_json": "{\"id\": 2, \"type\": \"user\"}"
    }
  }
}

Field descriptions

NameTypeDescription
controllerstringThe class name of the controller called.
actionstringThe action name of the controller action called.
params_jsonstringA JSON representation of the parsed parameters sent to the controller. This is great for request inspect to ensure the data being sent to your controllers is correct.

Using this data

Example queries:

  • Searching: controller_call.controller:WelcomeController
  • Only this event: is:controller_call

See our doc on searching.

Questions?

Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up