CouchBase instrumentation for NewRelic
Make sure you have installed the Couchbase Ruby Client and NewRelic RPM
Add this line to your application's Gemfile:
gem 'newrelic-couchbase'
And then execute:
$ bundle
Core methods of Couchbase will begin to traced by NewRelic. To disable Couchbase instrumentation either the DISABLE_NEW_RELIC_COUCHBASE flag can be set to true
ENV['DISABLE_NEW_RELIC_COUCHBASE'] = true
OR, the following statement can be appended to the newrelic.yml file
disable_couchbase: true
On the bucket level, we've modified how get
and set
are reported.
We alias them to methods which then report the bucket name using the
NewRelic::Agent::Datastores.wrap
API.
All other transactions are reported using NewRelic::Agent::Datastores.trace
and, consequently, there's no bucket name.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request