Sha256: d5cd0ae6b35ed8780fb0baca6965030f72578422cd8479e335ff3051a6875d10

Contents?: true

Size: 561 Bytes

Versions: 13

Compression:

Stored size: 561 Bytes

Contents

module Instana
  AUTOLOAD_DIRECTORIES = [:instrumentation, :frameworks].freeze
end


if !ENV.key?('INSTANA_DISABLE_AUTO_INSTR')
  #
  # 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

13 entries across 13 versions & 1 rubygems

Version Path
instana-1.9.5 lib/instana/instrumentation.rb
instana-1.9.4 lib/instana/instrumentation.rb
instana-1.9.3 lib/instana/instrumentation.rb
instana-1.9.2 lib/instana/instrumentation.rb
instana-1.9.1 lib/instana/instrumentation.rb
instana-1.9.0 lib/instana/instrumentation.rb
instana-1.9.0.daftrabbit lib/instana/instrumentation.rb
instana-1.8.3 lib/instana/instrumentation.rb
instana-1.9.0.sillyrabbit lib/instana/instrumentation.rb
instana-1.8.2 lib/instana/instrumentation.rb
instana-1.8.1 lib/instana/instrumentation.rb
instana-1.8.0 lib/instana/instrumentation.rb
instana-1.7.15 lib/instana/instrumentation.rb