Setup Rails

Current provides first class integration with Ruby on Rails. This is done via a gem: currentsh.

To use this, simply add currentsh to your Gemfile and bundle.

Next, open up config/environments/production.rb and add:

  config.currentsh.enabled = true

This will tell the gem to wire itself into the fabric of the Rails notification system and output logs in JSON format, which current.sh can parse and make available as structured data.

We suggest you try this out in a staging environment before moving it into production to be sure that the additional logging doesn’t destabilize the performance of your app.