Module: RPMContrib

Defined in:
lib/rpm_contrib.rb,
lib/rpm_contrib/instrumentation/resque.rb,
lib/rpm_contrib/instrumentation/camping.rb

Defined Under Namespace

Modules: Instrumentation

Constant Summary collapse

VERSION =
File.read(RPM_CONTRIB_LIB+"/../CHANGELOG")[/Version ([\d\.]+)$/, 1]

Class Method Summary collapse

Class Method Details

.init_sequenceObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/rpm_contrib.rb', line 6

def self.init_sequence
  Proc.new do
    # Tell the agent to load all the files in the
    # rpm_contrib/instrumentation directory.
    NewRelic::Agent.add_instrumentation(RPM_CONTRIB_LIB+"/rpm_contrib/instrumentation/**/*.rb")

    # Load all the Sampler class definitions.  These will register
    # automatically with the agent.
    Dir.glob(RPM_CONTRIB_LIB + "/rpm_contrib/samplers/**/*.rb") { |file| require file }
  end
end