Skip to content

Commit

Permalink
Merge pull request #13 from wireframe/remove-at-exit
Browse files Browse the repository at this point in the history
Remove at_exit shutdown hook.
  • Loading branch information
flyerhzm committed Jan 26, 2014
2 parents 3d965cc + 16aba1e commit eb34cbf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/newrelic-rake/instrument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ def execute(args=nil)
end
end

# Make sure NewRelic agent flush data to the server according to
# https://newrelic.com/docs/ruby/monitoring-ruby-background-processes-and-daemons
# even though Agent configuration is :send_data_on_exit => true
at_exit { NewRelic::Agent.shutdown }

def execute_with_newrelic_trace(args)
unless ::NewRelic::Rake.started?
::NewRelic::Agent.manual_start
Expand Down

0 comments on commit eb34cbf

Please sign in to comment.