Sha256: c3a08162546545131853c3c14ea9435ed902f1bd1cd2b1078b0d3caac0610330

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
substantial-sunspot_rails-2.0.0.pre.111215 lib/sunspot/rails/solr_instrumentation.rb