class ActiveSupport::ErrorReporter

def set_context(...)

See +ActiveSupport::ExecutionContext.set+

Rails.error.set_context(section: "checkout", user_id: @user.id)

Update the execution context that is accessible to error subscribers
def set_context(...)
  ActiveSupport::ExecutionContext.set(...)
end