README.md in newrelic_moped-0.0.12 vs README.md in newrelic_moped-0.0.13

- old
+ new

@@ -1,6 +1,6 @@ -# New Relic Moped +# New Relic Moped [![Build Status](https://travis-ci.org/stevebartholomew/newrelic_moped.svg)](https://travis-ci.org/stevebartholomew/newrelic_moped) New Relic instrumentation for Moped (1.x, 2.0) / Mongoid (3.x, 4.0) ## Installation @@ -13,9 +13,20 @@ $ bundle Or install it yourself as: $ gem install newrelic_moped + +### Sinatra, Resque, Sidekiq + +When you don't use in Sinatra config.ru + + run Rack::URLMap.new '/' => Sinatra::Application + +or you would like to instrument *Moped* usage in non-Rack configurations like *Resque*, *Sidekiq* or even in *irb*, you have to be sure that *newrelic_moped* is required **before** *newrelic_rpm* + + require 'newrelic_moped' + require 'newrelic_rpm' ### Configuration This gem does not require any specific configuration. Please follow general newrelic_rpm gem configuration: https://github.com/newrelic/rpm/blob/master/newrelic.yml