Module: NewRelicResqueAgent

Defined in:
lib/newrelic_resque_agent.rb

Defined Under Namespace

Classes: Agent

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.runObject

Register and run the agent



60
61
62
63
64
65
66
67
68
69
# File 'lib/newrelic_resque_agent.rb', line 60

def self.run
  NewRelic::Plugin::Config.config.agents.keys.each do |agent|
    NewRelic::Plugin::Setup.install_agent agent, NewRelicResqueAgent
  end

  #
  # Launch the agent (never returns)
  #
  NewRelic::Plugin::Run.setup_and_run
end