Module Sequel::NewRelicInstrumentation
In: lib/sequel/extensions/newrelic_instrumentation.rb

New Relic‘s Sequel instrumentation is implemented via a plugin for Sequel::Models, and an extension for Sequel::Databases. Every database handle that Sequel knows about when New Relic is loaded will automatically be instrumented, but if you‘re using a version of Sequel before 3.47.0, you‘ll need to add the extension yourself if you create any after the instrumentation is loaded:

    db = Sequel.connect( ... )
    db.extension :newrelic_instrumentation

Versions 3.47.0 and later use `Database.extension` to automatically install the extension for new connections.

Disabling

If you don‘t want your models or database connections to be instrumented, you can disable them by setting `disable_database_instrumentation` in your `newrelic.yml` to `true`. It will also honor the `disable_activerecord_instrumentation` setting.

Methods

Classes and Modules

Module Sequel::NewRelicInstrumentation::Naming

Constants

THREAD_SAFE_CONNECTION_POOL_CLASSES = [ (defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool)

Public Instance methods

[Validate]