module NewRelic::Agent::Instrumentation::SequelHelper

Constants

DEFAULT_PRODUCT_NAME

Fallback if the product cannot be determined

PRODUCT_NAMES

A Sequel adapter is called an “adapter_scheme” and can be accessed from the database:

DB.adapter_scheme

Public Instance Methods

product_name_from_adapter(adapter) click to toggle source
# File lib/new_relic/agent/instrumentation/sequel_helper.rb, line 29
def product_name_from_adapter(adapter)
  PRODUCT_NAMES.fetch(adapter, DEFAULT_PRODUCT_NAME)
end