Sha256: 129b810bc2e52882479d02130b7961f893d52292b4fe2bf663d280168a0d5d78
Contents?: true
Size: 1.14 KB
Versions: 13
Compression:
Stored size: 1.14 KB
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. require 'appoptics_apm/frameworks/rails/inst/connection_adapters/mysql' require 'appoptics_apm/frameworks/rails/inst/connection_adapters/mysql2' require 'appoptics_apm/frameworks/rails/inst/connection_adapters/postgresql' if AppOpticsAPM::Config[:active_record][:enabled] && !defined?(JRUBY_VERSION) begin adapter = ActiveRecord::Base.configurations[Rails.env]['adapter'] if Rails::VERSION::MAJOR < 5 require 'appoptics_apm/frameworks/rails/inst/connection_adapters/utils' else require 'appoptics_apm/frameworks/rails/inst/connection_adapters/utils5x' end AppOpticsAPM::Inst::ConnectionAdapters::FlavorInitializers.mysql if adapter == 'mysql' AppOpticsAPM::Inst::ConnectionAdapters::FlavorInitializers.mysql2 if adapter == 'mysql2' AppOpticsAPM::Inst::ConnectionAdapters::FlavorInitializers.postgresql if adapter == 'postgresql' rescue StandardError => e AppOpticsAPM.logger.error "[appoptics_apm/error] AppOpticsAPM/ActiveRecord error: #{e.inspect}" AppOpticsAPM.logger.debug e.backtrace.join("\n") end end # vim:set expandtab:tabstop=2
Version data entries
13 entries across 13 versions & 1 rubygems