Adds endpoint to enable New Relic manually.
Add this line to your application's Gemfile:
gem 'partiarelic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install partiarelic
# Gemfile
gem 'partiarelic', require: 'partiarelic/rails'
then your Rails application will handle /_newrelic/manual_start
.
# Gemfile
gem 'partiarelic'
# config.ru (middleware)
use Partiarelic::Middleware, path: '/_newrelic/manual_start'
# config.ru (mount)
map '/_newrelic/manual_start' do
run Partiarelic::App.new(path: '/_newrelic/manual_start')
end
$ rake spec
Bug reports and pull requests are welcome on GitHub at https://github.com/wata-gh/partiarelic.
The gem is available as open source under the terms of the MIT License.