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.
398 399 400 401 |
# File 'lib/new_relic/agent.rb', line 398 def shutdown( = {}) record_api_supportability_metric(:shutdown) agent.shutdown if agent end |