languages / ruby / integrations / rails

Ruby Integrations - Rails

The Timber for Ruby Rails integration enhances and augments your Rails logs automatically.

  1. Structured data
  2. What you can do
  3. Installation
  4. Disable

Structured data

You'll Get
event.controller_call
event.http_request
event.http_response
event.template_render

What you can do

  1. Trace HTTP requests
  2. Inspect HTTP requests & their parameters
  3. Tail a user
  4. Inspect Rails logs and view their associated metadata
  5. Search on Rails structured data
  6. Alert on Rails structured data
  7. Graph & visualize Rails structured data

Installation

This integration is installed automatically through the Timber Railtie. There is nothing manual you need to do beyond adding the timber gem in your Gemfile.

Disable

Timber allows you to silence or disable this integration. The former silences the log entirely, where the latter reverts the log to it's original unstructured, pre-Timber format.

Silencing

The following will completely silence the logs produced by this integration. In other words, the log lines will not appear in your logs:

1
2
3
4
# config/initializers/timber.rb
Timber.config.integrations.action_controller.silence = true
Timber.config.integrations.active_record.silence = true
Timber.config.integrations.action_view.silence = true

Disable structured data

If you aren't familiar with how Timber structures data, please read the structuring through augmentation document. This structuring can be disabled, reverting each integrations logs to it's original unstructured, pre-Timber format:

1
2
3
4
# config/initializers/timber.rb
Timber.config.integrations.action_controller.disable = true
Timber.config.integrations.active_record.disable = true
Timber.config.integrations.action_view.disable = true
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