Method: NewRelic::Agent#shutdown

Defined in:
lib/new_relic/agent.rb

#shutdown(options = {}) ⇒ Object

Shutdown the agent. Call this before exiting. Sends any queued data and kills the background thread.

Parameters:

  • options (Hash) (defaults to: {})

    Unused options Hash, for back compatibility only



641
642
643
644
# File 'lib/new_relic/agent.rb', line 641

def shutdown(options = {})
  record_api_supportability_metric(:shutdown)
  agent&.shutdown
end