Sha256: 1b50d4066957f8675d4d84e2aaa8ab9ee7b1aff16718451e8193c031f88dce07

Contents?: true

Size: 543 Bytes

Versions: 16

Compression:

Stored size: 543 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

16 entries across 16 versions & 2 rubygems

Version Path
newrelic_rpm-2.13.4.rum6 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4.rum5 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4.rum4 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.5.beta4 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.5.beta3 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.5.beta2 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.5.beta1 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4.eum3 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4.eum2 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4.eum1 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.4 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.3 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.3.beta lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.2 lib/new_relic/agent/instrumentation/sunspot.rb
honkster-newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/sunspot.rb
newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/sunspot.rb