Sha256: 12e3cbf0df58fae7b960f92640dfa1de1e216dee1de6764f3ba7ac27df09be43

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

class InstrumentActionController < ApplicationController
  # extend Librato::Rails::Helpers::Controller
  # before_filter :before

  instrument_action :inst, :inst_too

  def inst
    Librato.timing 'internal execution' do
      render nothing: true
    end
  end

  def not
    render nothing: true
  end

  private

  def before
    sleep 1
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
librato-rails-1.4.2 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.4.1 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.4.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.4.0.beta test/dummy/app/controllers/instrument_action_controller.rb