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.
641 642 643 644 |
# File 'lib/new_relic/agent.rb', line 641 def shutdown( = {}) record_api_supportability_metric(:shutdown) agent&.shutdown end |