Sha256: 74134d7752e3ba0309c1f00d83342bba05c8580d19a71810751e3b4ef5cef7cf

Contents?: true

Size: 366 Bytes

Versions: 8

Compression:

Stored size: 366 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_instrumented
    render nothing: true
  end

  private

  def before
    sleep 1
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
librato-rails-1.3.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.2.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.1.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-1.0.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-0.12.0 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-0.12.0.beta test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-0.11.1 test/dummy/app/controllers/instrument_action_controller.rb
librato-rails-0.11.0 test/dummy/app/controllers/instrument_action_controller.rb