logstasher icon indicating copy to clipboard operation
logstasher copied to clipboard

Feature Request: Ability to ignore certain paths / routes

Open ajsharp opened this issue 8 years ago • 2 comments

ajsharp avatar Mar 03 '16 01:03 ajsharp

Feature with high demand, especially for high-loaded apps

For now it can be done with monkey-patching.

Put this to config/initializers/logstasher.rb:

if LogStasher.enabled?

  LogStasher::ActiveSupport::LogSubscriber.class_eval do

    alias :original_process_action :process_action

    def process_action(event)
      if event.payload[:exception] # some your condition
        original_process_action(event)
      end
    end

  end

end

garmoshka-mo avatar Feb 22 '17 18:02 garmoshka-mo

BUMP

bhushangahire avatar Mar 02 '21 19:03 bhushangahire