/newrelic-couchbase

NewRelic Instrumentation for Couchbase

Primary LanguageRubyMIT LicenseMIT

Newrelic::Couchbase

CouchBase instrumentation for NewRelic

Installation

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

Usage

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

Reporting

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.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request