Sha256: 541eeb36689971ba063f986d81b65a2b9a5c43c17e69cf5231906b6646a496da
Contents?: true
Size: 965 Bytes
Versions: 6
Compression:
Stored size: 965 Bytes
Contents
module Elasticsearch module Rails module Instrumentation # Rails initializer class to require Elasticsearch::Rails::Instrumentation files, # set up Elasticsearch::Model and hook into ActionController to display Elasticsearch-related duration # # @see http://edgeguides.rubyonrails.org/active_support_instrumentation.html # class Railtie < ::Rails::Railtie initializer "elasticsearch.instrumentation" do |app| require 'elasticsearch/rails/instrumentation/log_subscriber' require 'elasticsearch/rails/instrumentation/controller_runtime' Elasticsearch::Model::Searching::SearchRequest.class_eval do include Elasticsearch::Rails::Instrumentation::Publishers::SearchRequest end ActiveSupport.on_load(:action_controller) do include Elasticsearch::Rails::Instrumentation::ControllerRuntime end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems