Sha256: eb9336211c82f5ec2ea9f5831b840c8d92dac78d22e347ad5e97f950d7f854ca

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 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

  def invalid_format
    head :ok
  end

  private

  def before
    sleep 1
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librato-rails-2.1.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-2.0.0 test/dummy/app/controllers/instrument_action_controller.rb