Sha256: 2ab4f0883ab3d177a14693c53cd6a5a091610f8fee59c778194b883d96f22d84

Contents?: true

Size: 515 Bytes

Versions: 17

Compression:

Stored size: 515 Bytes

Contents

module Sunspot
  module Rails
    module SolrInstrumentation
      extend ActiveSupport::Concern

      included do
        alias_method_chain :execute, :as_instrumentation
      end


      def execute_with_as_instrumentation(path, params={}, *extra)
        ActiveSupport::Notifications.instrument("request.rsolr",
                                                {:path => path, :parameters => params}) do
          execute_without_as_instrumentation(path, params, *extra)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
sunspot_rails-2.0.0 lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.130115 lib/sunspot/rails/solr_instrumentation.rb
gojee-sunspot-rails-2.0.5 lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.120925 lib/sunspot/rails/solr_instrumentation.rb
sunspot_solr-2.0.0.pre.120924 sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.120924 sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb
sunspot-2.0.0.pre.120924 sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb
gojee-sunspot-rails-2.0.4 lib/sunspot/rails/solr_instrumentation.rb
gojee-sunspot-rails-2.0.2 lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.120720 lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.120417 lib/sunspot/rails/solr_instrumentation.rb
sunspot_rails-2.0.0.pre.120415 lib/sunspot/rails/solr_instrumentation.rb
erichummel-sunspot_rails-2.0.0.pre.111215d lib/sunspot/rails/solr_instrumentation.rb
erichummel-sunspot_rails-2.0.0.pre.111215c lib/sunspot/rails/solr_instrumentation.rb
erichummel-sunspot_rails-2.0.0.pre.111215b lib/sunspot/rails/solr_instrumentation.rb
erichummel-sunspot_rails-2.0.0.pre.111215a lib/sunspot/rails/solr_instrumentation.rb
erichummel-sunspot_rails-2.0.0.pre.111215 lib/sunspot/rails/solr_instrumentation.rb