Displaying 2 results from an estimated 2 matches for "controller_instrumentation".
2013 May 08
1
server started as daemon: Application behaves differently from running in console
...lers/api/v2/devices_controller.rb:195:in `destroy''
app/controllers/api/application_controller.rb:44:in `safe_run''
app/controllers/application_controller.rb:10:in `log_request''
/usr/local/lib/ruby/gems/1.8/gems/newrelic_rpm-3.5.0.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:270:in
`perform_action''
/usr/local/lib/ruby/gems/1.8/gems/newrelic_rpm-3.5.0.1/lib/new_relic/agent/method_tracer.rb:242:in
`trace_execution_scoped''
/usr/local/lib/ruby/gems/1.8/gems/newrelic_rpm-3.5.0.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:i...
2012 Aug 07
0
hooking NewRelic into Puppet agent
...and so forth.
Now, I''ve been able to hook NewRelic into the Puppet agent by changing
/usr/bin/puppet to look like this:
> #!/usr/bin/ruby1.8
> require ''rubygems''
> require ''newrelic_rpm''
> require ''new_relic/agent/instrumentation/controller_instrumentation''
> NewRelic::Agent.manual_start
> include NewRelic::Agent::Instrumentation::ControllerInstrumentation
> perform_action_with_newrelic_trace(:name => "PuppetAgentRun:
> #{`hostname`}", :category => :task) do
> require ''puppet/util/command_line'&...