When you work in big Rails application sometimes you would like to remove certain lines of code or even whole features. But often, you are not completely sure if they are truly unused. What can you do?
With chillout.io and other monitoring solutions that’s easy. Just introduce a new metric in the place of code you are unsure about.
class SocialSharesController < ApplicationController def friendster Chillout::Metric.track('SocialSharesController#friendster') # normal code end end
After you add a graph to your panel, you can easily configure an alert with notifications to Slack, email or whatever you prefer, so that you are pinged if this code is executed.