class Airbrake::Filters::ContextFilter
@since v2.9.0
@api private
attached.
Adds user context to the notice object. Clears the context after it’s
def call(notice)
def call(notice) @mutex.synchronize do return if @context.empty? notice[:params][:airbrake_context] = @context.dup @context.clear end end
def initialize(context)
def initialize(context) @context = context @weight = 119 @mutex = Mutex.new end