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 Airbrake::Context.current.empty? notice[:params][:airbrake_context] = Airbrake::Context.current.to_h Airbrake::Context.current.clear end end
def initialize
def initialize @weight = 119 @mutex = Mutex.new end