Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add "Install exit handler" section in README

  • Loading branch information...
commit d60b062a40d94bcf28fe2cb9358efb159a32f486 1 parent 0691395
@flyerhzm flyerhzm authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -31,6 +31,16 @@ NewRelic::Agent.manual_start
These steps happen automatically in Rails' `:environment` task if you use `Bundler.require` in your `application.rb`.
+## Install exit handler
+
+In general, newrelic gem will automatically install exit handler. But if
+you have sinatra gem in Gemfile.lock, you have to manually install exit
+handler
+
+```
+at_exit { NewRelic::Agent.shutdown }
+```
+
## Authors and Contributors
[Contributors](https://github.com/flyerhzm/newrelic-rake/graphs/contributors)
Please sign in to comment.
Something went wrong with that request. Please try again.