Sha256: f43520beadb59d2623e69307c3fd54123a85fbc44129750dcf893694177e2c7c
Contents?: true
Size: 874 Bytes
Versions: 30
Compression:
Stored size: 874 Bytes
Contents
module Instana AUTOLOAD_DIRECTORIES = [:instrumentation, :frameworks].freeze end # Environment variables: # # INSTANA_DISABLE_AUTO_INSTR, unless set to false, will disable loading of automatic instrumentation # INSTANA_DISABLE disables the gem entirely and therefore doesn't load automatic instrumentation # if (!ENV.key?('INSTANA_DISABLE_AUTO_INSTR') || ENV['INSTANA_DISABLE_AUTO_INSTR'] === 'false') && !ENV.key?('INSTANA_DISABLE') # # 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
30 entries across 30 versions & 1 rubygems