Sha256: 7a426d03291ec913b23a75314f51666f758e20ebb897375eb1ce88b39eaf6c97
Contents?: true
Size: 614 Bytes
Versions: 15
Compression:
Stored size: 614 Bytes
Contents
module Instana AUTOLOAD_DIRECTORIES = [:instrumentation, :frameworks].freeze end if !ENV.key?('INSTANA_DISABLE_AUTO_INSTR') || ENV['INSTANA_DISABLE_AUTO_INSTR'] === 'false' # # Load all of the files in the specified subdirectories # ::Instana::AUTOLOAD_DIRECTORIES.each do |d| pattern = File.join(File.dirname(__FILE__), d.to_s, '*.rb') Dir.glob(pattern) do |f| begin require f rescue => e Instana.logger.error "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" Instana.logger.debug { e.backtrace.join("\r\n") } end end end end
Version data entries
15 entries across 15 versions & 1 rubygems