Sha256: c180d5a406d184e1eaa8f1d8bd37bf3f9a9775df3d22a1d2bffad56ef23263ca

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

# Copyright (c) 2016 SolarWinds, LLC.
# All rights reserved.

module AppOpticsAPM
  ##
  # The Inst module holds all of the instrumentation extensions for various
  # libraries suchs as Redis, Dalli and Resque.
  module Inst
    def self.load_instrumentation
      # Load the general instrumentation
      pattern = File.join(File.dirname(__FILE__), 'inst', '*.rb')
      Dir.glob(pattern) do |f|
        begin
          require f
        rescue => e
          AppOpticsAPM.logger.error "[appoptics_apm/loading] Error loading instrumentation file '#{f}' : #{e}"
          AppOpticsAPM.logger.debug "[appoptics_apm/loading] #{e.backtrace.first}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appoptics_apm-4.0.2 lib/appoptics_apm/instrumentation.rb
appoptics_apm-4.0.1-x86_64-linux lib/appoptics_apm/instrumentation.rb