Sha256: a4f2a2f662d2fe4995644a32e2f596709b02507a0a21dda669efb9aed6d60000

Contents?: true

Size: 549 Bytes

Versions: 11

Compression:

Stored size: 549 Bytes

Contents

if defined?(::Sunspot)
  ::Sunspot.module_eval do
    class << self
      %w(index index!).each do |method|
        add_method_tracer method, 'SolrClient/Sunspot/index'
      end
      add_method_tracer :commit, 'SolrClient/Sunspot/commit'
      
      %w[search more_like_this].each do |method|
        add_method_tracer method, 'SolrClient/Sunspot/query'
      end
      %w[remove remove! remove_by_id remove_by_id! remove_all remove_all!].each do |method|
        add_method_tracer method, 'SolrClient/Sunspot/delete'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
onyx_newrelic_rpm-2.12.5 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.0.beta5 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.0.beta4 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.0.beta3 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.3 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.2 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.2.beta2 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.2.beta lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.1 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.1.alpha lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.12.0 lib/new_relic/agent/instrumentation/sunspot.rb