Skip to content

Commit

Permalink
add "Install exit handler" section in README
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jun 15, 2014
1 parent 0691395 commit d60b062
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d60b062

Please sign in to comment.