Sha256: b32e42138e0df5dcd8622bf3037c4f26094075cc9e1704f175ec08457a82015b

Contents?: true

Size: 519 Bytes

Versions: 34

Compression:

Stored size: 519 Bytes

Contents

module Rack::Insight::Instrumentation
  class ProbeDefinition
    def initialize(package, target_name)
      @package = package
      @target_name = target_name
    end

    def instance_probe(*method_names)
      if probes = @package.get_instance_probe(@target_name)
        probes.probe(@package.collector, *method_names)
      end
    end

    def class_probe(*method_names)
      if probes = @package.get_class_probe(@target_name)
        probes.probe(@package.collector, *method_names)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rack-insight-0.6.4 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.6.3 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.6.2 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.30 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.29 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.28 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.27 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.26 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.25 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.24 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.23 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.22 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.21 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.20 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.19 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.18 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.17 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.16 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.15 lib/rack/insight/instrumentation/probe-definition.rb
rack-insight-0.5.14 lib/rack/insight/instrumentation/probe-definition.rb