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



456
457
458
459
# File 'lib/new_relic/agent.rb', line 456

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